0

I need to implement Android application which will be expired after few days or number of uses.
The application will be on the google market.
I can implement the check using shared preferences.
But what should I do in the application if user decides to buy the license?
Is it possible for user to pay via the market?

4

1 回答 1

1

您可以有两个不同的应用程序。一个是完整版,另一个是授权版。第一个版本将存储应用程序作为 SharedPreference 运行时的第一个日期。它也可以存储在其他地方的服务器上。之后它只会工作这么多天。在用户输入正确的产品密钥之前,第二个版本(许可版本)将无法使用。这可以通过互联网进行验证。

我不确定您为什么要这样做。Android 市场上的大多数应用程序都将提供其应用程序的免费版本,但功能有限。然后可以单独购买完整版的应用程序。该模型似乎适用于许多应用程序。

于 2012-04-04T19:35:06.240 回答