我正在使用 LVL 向我的应用程序添加许可。我想知道我是否可以检查购买该应用程序的人是否仍然能够获得退款(在购买后 15 分钟内使用该应用程序)。任何人都可以给我一些例子或指导吗?
或者另一种选择:检查应用程序何时安装在手机上。 我找到了这个链接 -> installTime
但有些事情不清楚:
应用程序源目录在安装后从未修改过?
更新后呢?
还在 licensing/ServerManagedPolicy.java 中发现了这条评论:
* These values will vary based on the the way the application is configured in
* the Android Market publishing console, such as whether the application is
* marked as free or is within its refund period, as well as how often an...
最佳答案
只需在应用程序中设置日期时间,并在启动应用程序时将其保存为首选项。然后在某个时间点对其进行评估,看看是否已经过了 15 分钟。
关于android lvl 检查购买的应用程序是否在退款期内,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4578056/