为免费 Android 应用程序提供高级更新的正确方法
我一直在 Android Market 上开发一款免费游戏(带有广告)。现在很多人要求我做一个没有广告的付费版本。我没有保留单个应用程序的多个版本的经验。
我已经在 Eclipse 上分解出了该应用程序:一个库项目和一个(免费)应用程序项目。现在我将为付费版本添加一个新项目。
我的主要问题与从免费版本导入旧设置和数据的最有效和可靠的方法有关(如果它恰好已经安装在用户的手机上)。
- 理想情况下,我希望用户不必手动导出数据和设置。
- 我认为硬编码文件路径并不健壮。
- 我太懒了,也不敢实现
ContentProvider
。
有没有一种简单的方法可以根据包名称从我的另一个应用程序查询数据和设置?
非常感谢。
I have been developing a free game (with ads) on the Android Market. Now quite a few people are requesting me to do a paid version without ads. I have no experience in keeping multiple versions of a single app.
I have already factored out the app on Eclipse: a library project and a (free) app project. Now I'm going to add a new project for the paid version.
My main problem has to do with the most efficient and reliable way to import old settings and data from the free version if it happens to be already installed on user's phone.
- Ideally, I want users not to have to export data and settings manually.
- I think hardcoding file paths is not robust.
- I am too lazy and daunted to implement a
ContentProvider
.
Is there an easy way to query for data and settings from another app of mine, given the package name?
Thank you very much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您无需复制任何内容,甚至无需安装其他应用程序。只需将应用内购买添加到禁用广告的免费应用程序即可。
巴里
You don't need to copy anything or even install another app. Just add an in-app purchase to the free app that disables ads.
Barry