本文介绍了什么是使用Android Market授权合理的许可政策的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:
Android Market的授权是一个替代的Andr​​oid应用程序的当前副本保护。该 SDK 规定,是有效的替代提供Android电子市场中的版权保护机制。

这是真正简单易用的防拷贝机制。现在,一个应用程序需要检查您定义的许可政策。

借助应用我卖的是只有$ 3.00我们,所以我不希望过于复杂的政策。

问题:
什么是一个简单而合理的许可政策采取?
我多久应该检查许可证?
由于我的应用程序可能常常被用于在没有连接,我怎么能合理地检查这一点,并在同一时间减少未经授权的设备?

解决方案

我没有将我的应用程序使用拉特(还),但我的计划是使用定期检查与宽限期。

  • 应用程序应坚持在许可证检查成功之前,它会运行第一次。大多数人开始了新的应用程序进行安装后不久,因此,如果他们进入市场买的话,他们可能仍然有连接。

  • 重新检查许可证,每隔一段时间,并重新启动一次成功的检查宽限期。低于更多。

  • 在宽限期到​​期后,该应用程序做什么,它应该做的事情在非授权状态。

我基地多远进入宽限期你。例如,如果宽限期为一个月,你可能会在一周检查每四天,每三个在每周二,隔日的三次周,每天在4周。当检查回来正面,重新启动宽限期。这将有效地导致一个检查每四天

有一件事情你的没有的想要做每次启动时检查,除非你是在宽限期之外,因为经常使用的应用程序可以机架数据费和延迟时间可能烦。

其他的事情要考虑这样做的:

  • 请它,因为它使用的授权服务和运行的 N 的没有一个成功的检查,什么天将,如果超过宽限期(例如,演示模式发生应用程序的说明可知,只读,完全禁用)。

  • 敬酒在启动一个警告,如果应用程序是在失去其许可证的边缘。

  • 提供一种方法来异步检查许可,并重新启动宽限期。

Background:
Android Market Licensing is a replacement for the current copy protection of android applications. The SDK states that is effectively replaces the copy-protection mechanism offered on Android Market.

It was real simple to use the copy-protection mechanism. Now an app needs to check the licensing policy that you define.

The app I sell is only $3.00 US so I don't want an overly complex policy.

Questions:
What would be a simple and reasonable licensing policy to adopt?
How often should I be checking for the license?
Since my application might often be used where there is no connectivity, how can I reasonably check for this and at the same time minimize the unauthorized installations?

解决方案

I haven't converted my apps to use the LVL (yet), but my plan is to use periodic checking with a grace period.

  • The app should insist on a successful license check before it will run the first time. Most folks start up new apps shortly after installing them, so if they had access to the Market to buy it, they probably still have connectivity.

  • Recheck the license every so often and restart the grace period on a successful check. More on that below.

  • Once the grace period expires, the application does whatever it should be doing in a non-licensed state.

I'd base that on how far into the grace period you are. For example, if the grace period is one month, you might check every four days during week one, every three during week two, every other day during week three and daily during week four. When a check comes back positive, restart the grace period. This will effectively result in one check every four days.

One thing you don't want to do is check with every start-up unless you're outside the grace period, because a frequently-used application could rack up data charges and the delay might be annoying.

Other things to consider doing:

  • Make it clear in the app's description that it uses the licensing service and will run n days without a successful check and what will happen if the grace period expires (e.g., demo mode, read-only, totally disabled).

  • Toast a warning at start-up if the application is on the verge of losing its license.

  • Provide a way to asynchronously check the license and restart the grace period.

这篇关于什么是使用Android Market授权合理的许可政策的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 00:34