Hi,

My App has been in PlayStore for ~2 years and licensing works most of the 
time. But a small (but too big) number of customers have trouble.For the 
past version I very seldomly got e-mails about this, but the numbers there 
are probably quite in the dark. Since my last update I get ANR-Reports 
related to that.Gooogle and my own experience indicate that this is not a 
common problem among other apps, so what am I doing wrong?

I have JAVA-Code that handles the verification and is called via JNI form 
native code. The function creates a  new LicenseChecker with a 
ServerManagedPolicy. It then waits on an object that is notified in 
allow(), dontAllow() and applicationError() of LicenseCheckerCallback. As 
deviceID for the AESObfuscator I use the ANDROID_ID. What is new in the new 
Version is that I had a crash on some devices that hinted at the fact, 
that Secure.getString(dwin_application.I().getContentResolver(), 
Secure.ANDROID_ID); might return null. In this case I now use a hardcoded 
deviceID that is the same for all devices with that Bug.

The code is normally called at startup of the app from a native thread. If 
that fails I show a message with a button to re-check. The re-check is done 
right from the handler of the touch for that button. This is where the 
ANR-Reports come in. Their stack-traces show that the thread with tid=1 is 
waiting on the object, which means that no call-back occured.

I could easily eliminate the ANRs by passing the job to another thread or 
giving the wait a timout. But other than gaining a few points for style 
this wouldn't help any. The App is useless to the affected users no matter 
if it crashes or repeatedly shows the dialog that the license could not be 
verified.

Any ideas or hints?

Thanks in advance 
Moritz

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/94470675-b4fd-4052-8635-0941eb394e1f%40googlegroups.com.

Reply via email to