Wednesday, January 5, 2011

[android-developers] LVL: possible to check license for a different app?

Hi all

Just wondering if I can use LVL to check that the user is licensed to
use a DIFFERENT app from the current one -- ie. one with a different
package name.

Why would I want to do this? I'm developing an app which I'm
considering publishing using a free + pro license model. The main app
would be a free, ad supported app. To turn off ads the user would
purchase a pro license key from the market (published as a paid app
containing no functionality). The user would continune to use the app
that was downloaded for free, which checks if the paid app is
installed, and if so it disables ads. I prefer this model to a fully
featured paid app model, as it eliminates the need to migrate data
from the free version to the paid when the user upgrades.

Under this model I would like the free app to check if the paid app is
installed, and if so the free app would then use LVL to check if the
user has purchased the paid app via the market. Will it be possible
for the free app to pass the package name of the paid app to LVL, and
to get back a result confirming whether the paid app has been
purchased or not?

Looking at the LVL source code I suspect I can do this by modifying
the constructor of LicenseChecker to set mPAckageName to a supplied
argument rather than setting it to mContext.getPackageName().

Are there any gotcha's I may be missing?

Thanks ...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate