LVL许可在一个动态壁纸? [英] LVL licensing in a Live Wallpaper?

查看:177
本文介绍了LVL许可在一个动态壁纸?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有成功的授权验证库(LVL)与一个动态壁纸整合?如果只是运行的活动,这将会是一清二楚,只是从牌活动,从而扩展了活动致以活动。但是,动态壁纸是一种服务,我不知道这两者是打算如何进行互动。

Has anybody had success integrating the Licensing Verification Library (LVL) with a Live Wallpaper? If it were just running an Activity, it'd be crystal clear to just extend my Activity from the Licensing Activity, which in turn extends Activity. But Live Wallpapers are a Service, and I'm not sure how the two are intended to interact.

我使用的是源于此code:<一href=\"http://www.droidforums.net/forum/android-app-developers/69899-market-license-easy-implementation-protect-your-apps.html\" rel=\"nofollow\">http://www.droidforums.net/forum/android-app-developers/69899-market-license-easy-implementation-protect-your-apps.html这似乎是在code,几乎所有我能找到在网络上指。

I'm using code derived from this: http://www.droidforums.net/forum/android-app-developers/69899-market-license-easy-implementation-protect-your-apps.html which seems to be the code that nearly everything I can find on the web refers to.

我注意到,墙纸设置一个活动,而我的工作正常,但由于某些原因,我不能神交许可的东西...

I notice that wallpaper settings are an activity, and I have those working properly, but for some reason I can't grok the Licensing stuff...

推荐答案

我只写了启动活动的申请,但看着我的源$ C ​​$ C,看来,你就必须有一个活动的唯一理由做许可证检查是显示的对话框。

I have only written applications that start activities, but looking at my source code, it seems that the only reason that you would have to have an Activity do the license check is to show dialogs.

在所有的上线提供的示例中, LicenseCheckerCallback 的实施总是显示在对话框中的允许() dontAllow()方法。为什么不只是显示敬酒dontAllow(),退出你的壁纸服务(呼叫 stopSelf(YourService.this)) ?

In all of the examples available on line, the LicenseCheckerCallback implementation always shows a dialog in the allow() and dontAllow() methods. Why not just show a toast in dontAllow() and exit your wallpaper service (call stopSelf(YourService.this))?

让我知道如果你想了解更多信息,因为我不认为你仅限于使用活动许可检查。顺便说一句,请确保你不保持整个字符串等应用程式或在preferences。任何人都具有root访问权限才能访问preferences,如果您​​的应用程序反编译,你的字符串是可见的...

Let me know if you want more information, because I dont think you are limited to only using an activity for license checking. As an aside, make sure that you dont keep whole strings, etc in your app or in the preferences. Anyone with root access can access your preferences and if your app is decompiled, your strings are visible...

这篇关于LVL许可在一个动态壁纸?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆