iPhone 上的 RIA 闪存应用程序可以在互联网连接可用之前存储持久数据吗?
我有兴趣为我现有的 Web 服务构建一个在 iPhone 上运行的胖客户端应用程序。 Flash似乎终于成为一个选择,所以我考虑使用Flex进行客户端开发。
然而,由于 iPhone 本身并不支持 Flash 应用程序,而是只能通过包装器支持,所以我想知道这些应用程序是否可以保留任何数据。用户输入的数据最终应该传输到网络服务,但在那之前我希望它能够持续存在,即使 Iphone 没电了。
这可能吗?或者Iphone闪存包装器是否会导致无法访问硬盘?
I'm interested in building a thick client application for my existing web services that will run on the IPhone. Flash finally seems to be an option, so I thought about using Flex for client side development.
However, since flash apps are not natively supported by the IPhone, but only through a wrapper, I was wondering if these apps can persist any data. Data entered by the user should eventually be transmitted to the web service, but until then I want it to persist even if the Iphone should run out of power.
Is this possible? Or does the Iphone flash wrapper make it impossible to access the hard disk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 SQLite3 写入数据库作为在手机上存储数据的方式。
“您可以访问几乎所有 AIR 2.0 和 Flash Player 10.1 API。例如,您可以使用 RTMP、远程共享对象和 AMF 等 API 以及 SQLite 和文件系统访问等 AIR API。有关更多信息,请参阅开发人员Adobe 实验室常见问题解答。”
-source http://www.adobe.com/devnet/logged_in/abansod_iphone.html #
此外,他们似乎建议不要使用 Flex:
“虽然可以使用桌面 Flex 框架创建 iPhone 内容,但我们不建议这样做。Flex 框架目前针对在桌面环境中执行进行了优化。性能、UI 和交互模型尚未针对移动设备进行优化。”
希望有帮助:)
You can write to a database with SQLite3 as a way to store data on the phone.
"You have access to nearly all the AIR 2.0 and Flash Player 10.1 APIs. For example, you can use APIs such as RTMP, Remote Shared Objects, and AMF as well as AIR APIs like SQLite and filesystem access. For more information see the developer FAQ on Adobe Labs."
-source http://www.adobe.com/devnet/logged_in/abansod_iphone.html#
Also they seem to recommend not using Flex:
"While it is possible to create iPhone content using the desktop Flex Framework, we do not recommend it. The Flex framework is currently optimized for execution in a desktop environment. The performance, UI, and interaction models have not been optimized for mobile devices."
Hope that helps :)
如果其他人也在寻找在 iPhone 上使用 Flex 的方法:Adobe 计划发布 Flex 框架的移动版本 2010。
In case someone else is also looking for a way to use Flex on Iphones: Adobe is planning to release a mobile version of the Flex framework 2010.