安卓元数据

发布于 2024-11-18 17:07:57 字数 187 浏览 12 评论 0原文

快问。在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦里人 2024-11-25 17:07:57

我认为 共享首选项 就是这样的地方。

I think Shared Preferences are the place for that.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文