安卓元数据
快问。在我的 Android 应用程序中,存储一些不会被市场更新覆盖的元数据的正确位置在哪里?我想存储离线数据库版本号,并将其与在线数据库版本号进行比较,但我担心如果将其存储在清单中的元数据标记中,它会被覆盖。在该应用程序的 iPhone 版本上,我刚刚制作了一个自定义 plist 文件,并使用了它。 Android 是否有类似的方法来处理这样的自定义文件?
Quick question. Where would the proper place be to store some metadata in my Android app that won't get overwritten with an update from the Market? I want to store an offline database version number, and compare it to an online database number, but i'm afraid if I store it in a meta-data tag in the Manifest, it'll get overwritten. On the iPhone version of the app, I just made a custom plist file, and used that. Is there a comparable way for Android to work with custom files like that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为 共享首选项 就是这样的地方。
I think Shared Preferences are the place for that.