诺基亚 Series 40 持久存储
我对诺基亚 Series 40 平台上的 Java 应用程序持久存储有疑问。当应用程序被删除时(集合 -> 选项 -> 删除),谁负责清理应用程序的持久存储 (RMS)?
我知道 Series 40 上没有明确的应用程序管理器(与 S60 相比)从用户的角度来看,删除应用程序与删除图像文件非常相似。那么,删除应用程序后,Series 40 操作系统会自动清除持久存储数据吗?有没有办法在删除应用程序时保留这些数据,并在再次安装该应用程序时可能再次使用它?
PS:我阅读了几乎所有的 Java 开发人员库,但我找不到明确的答案 - 它只是说,当 MIDlet 已被删除,但是谁删除的呢?相比之下,S60 开发人员库明确表示,在 S60 上,应用程序和持久存储都被应用程序管理器删除。
I have a question about persistent storage for Java applications on the Nokia Series 40 platform. Who takes care of cleaning the persistent storage (RMS) of an application when it is deleted (Collection->options->Delete)?
I know there is no explicit application manager on Series 40 (as compared to S60) and, from user perspective, deleting an application is very similar to deleting an image file, for example. So is persistent storage data cleared automatically by the Series 40 OS upon application deletion? Is there a way to preserve this data when an application is deleted and possibly use it again if the application is installed again?
P.S.: I read almost all of the Java developer's library, but I couldn't find an explicit aswer - it only said that all associated persistent storage must be removed when a MIDlet is removed, but who does that? By contrast, the S60 developer's library says explicitly that on S60 the application and persistent storage are both removed by the application manager.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当用户删除/卸载 MIDlet 时,操作系统也会删除关联的 RMS 数据。
如果相关应用程序已从设备中删除,则没有解决方法可以将 RMS 保留在设备上。如果您希望保留数据,请使用 JSR-75(文件连接 API)或网络服务将其写入单独的文件。
When the MIDlet is removed/uninstalled by the user, the operating system will also remove the associated RMS data.
There is no workaround for keeping the RMS on the device, if the related application has been removed from the device. If you wish to retain the data, write it to a separate file using JSR-75 (FileConnection API), or a network service.