I'm looking to do this too as i'm investigating a way to migrate from a 
free app + paid purchase to a free app + IAP purchase. However as 3c said, 
simply doing the check from another app won't work as that will result in 
a ERROR_INVALID_PACKAGE_NAME error.

Anyone else ever migrate from a separate paid version to IAPs? How did you 
manage it?

On Wednesday, 5 January 2011 20:27:25 UTC-4, andfan22 wrote:
>
> 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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/30f28ccd-dae1-4c59-814f-04e344441fbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to