Android Tutorial Protect your Android application with the Licensing library

slowtime

Active Member
Licensed User
Longtime User
Sorry.

My problem was in the device cache.

When I clear cache all run right.

Sorry again.

Ciao
 

cmweb

Active Member
Licensed User
Longtime User
Hello,

how can I test my application in Emulator (Android Virtual Device Manager), when my App alread has the license check included?

The emulator seems to don't allow to create a Google account on the emulator, so the app always receives "don't allow" and closes the app.

I would like to test my app in emulator without always have to disable the license check code...

Any hints?

Best regards,

Carsten
 

timo

Active Member
Licensed User
Longtime User
I don't know if I tested it right, but I noticed that setting it in 'FirstTime' and closing with activity.finish, at the second start you access the app without problems because it remained resident (no force-close) and went over the lc.check. (I didn't add a SetVariableandValue).Is that a right behaviour?
 

eps

Expert
Licensed User
Longtime User
Fantastico! :icon_clap:

Just looking to integrate this into my first Paid For App....
 

bluedude

Well-Known Member
Licensed User
Longtime User
Hi Erel,

I never published an Android app. (we only use internal apps.) and I was wondering if I can test the Licensing Library without uploading an apk to the market.

Does the test console only work if an app. is uploaded to the market?

Cheers,
 

bluedude

Well-Known Member
Licensed User
Longtime User
Non Market managed

Erel,

I'm sure I configured everything ok and also use an account on the Android market on my phone that is equal to my market publisher account.

I have NOT uploaded an APK because i want to test it without publishing an app.

However, it does not work. I have put Licensed in the Test console but the app. gives me back Non Market Managed.

Any suggestions.
 

bluedude

Well-Known Member
Licensed User
Longtime User
Done all that

Erel,

I am logged in as indicated. I use the Android Market a lot and with the correct user account.

So when I start the License Manager demo I have been using the Android Market with the correct account.

I never use a debug key, signed it with a real key.

Any other suggestions?

Cheers,
 

bluedude

Well-Known Member
Licensed User
Longtime User
Test console

Just to confirm, this means that the Test console and the License Manager does not work without uploading an APK?

Cheers,
 

Brad

Active Member
Licensed User
Longtime User
I just added this to my app and it works great!

Timo, there is no need to upload your app. First thing is to set the License Test Response to something other then "Respond normally". You have to click the 'save' button after changing the value. Clear your app cache and give it a try.
 

eps

Expert
Licensed User
Longtime User
This worked for me, without uploading the App to the Market. Of course the device I am using is the one with my gmail registered to it. Other registered accounts can be added.
 

Highwinder

Active Member
Licensed User
Longtime User
Library effectiveness question

Erel,

The more I look into it, the more I see that app piracy is a rampant epidemic, and I need to know if the licensing library stops the following practice:

The user purchases the app and installs it.
The user runs the app, presumably allowing the license cache file to properly set itself.
They then quickly back up the app with a 3rd party backup program.
They then cancel the purchase before the 15 minutes are up.
They can then restore the app from the backup - potentially including the license cache file.

Does the licensing library protect against this practice?

Thanks,

- Highwinder
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…