English 中文(简体)
如何在保存任何数据的同时处理从免费升级到付费版本的申请。
原标题:How to handle application upgrades from free to paid version while preserving any data

Here is the context. I want to have a free version and a premium version of the same application. When people buy the application, I want them to be able to "upgrade" without losing their data, i.e. the premium version should install over the free version. I want to use the same code base and just switch a setting to build the premium version. Andoid Market does not let me convert a free app to a paid app, so the trivial option is not available.

如果有人成功尝试,我就感到奇怪。 安第斯市场如何确定一项申请——它是否认为溢价是一种不同的工具,只是同时安装?

最佳回答

答案是:这不能与安伯市场相隔,因为市场不允许上载两只带有相同名称的仪器。 不能将安乐器trick成在免费版本上安装溢价,并将其作为升级处理。

良好的新闻:增加数据库备份/备用功能(将数据库复制到SD卡,并反馈到复印机)只需要几条代码。 我的用户必须同时安装两种版本,从免费版本中支持数据库,并将数据库恢复至溢价版。

问题回答

数据库不支持SD卡(根据@cdonner的建议),后者需要<代码>。 EPAITE_EXTERNAL_STORAGE granted, the free app can exposure a ContentProvider, which the paid app can use to transfer data.

保证,以确保其内容。

我的想法如下:

  • Paid version s android:versionCode should be free s android:versionCode +1
  • Both should have the same package.

When paid version is installed, it will replace the free one. Actually it will update it, since it has a higher android:versionCode.

由于两者都有相同的一揽子计划,它们将放在同一个文件夹上(/data/your. Pack<>/code>),因此,有价的电器将能够免费查阅。





相关问题
Version numbering basics? [closed]

Suppose I have a web application with some basic functions. I want to market it. So I would like to assign a version number - something like 0.0.1. What I want to know is are there any constraints ...

Versioning problem

people. I hope you can help me. In our development process we have a unix based file server with SFTP access (let’s call it A). This server store a large numer of xslt files we are working on. The ...

ECM - Document Control Management / Versioning and CMS

I anticipate this is going to be a very broad question however I shall endevour to be as concise as possible without divulging too much project critical information. For quite some time I have been ...

How do other development teams approach version numbers?

Our application is quite mature, and thus we are up to version 16. However, this can give the impression that the software is old and out of touch (how many commercial applications are there with a ...

SVN avoid storing passwords in plain text?

Under a bare bones setup for SVN on windows (without using VisualSVN), as per the instructions, the passwords are to be entered in the passwd file. Does SVN provide a way to encrypt or atleast mask ...