06-24 15:05:17.435 E/AndroidRuntime(19246): FATAL EXCEPTION: background thread06-24 15:05:17.435 E/AndroidRuntime(19246): java.lang.NullPointerException06-24 15:05:17.435 E/AndroidRuntime(19246): at kyght.mygame.android.ShowcaseActivity$KyghtLicenceChecker.displayResult(ShowcaseActivity.java:100)06-24 15:05:17.435 E/AndroidRuntime(19246): at kyght.mygame.android.ShowcaseActivity$KyghtLicenceChecker.applicationError(ShowcaseActivity.java:123)06-24 15:05:17.435 E/AndroidRuntime(19246): at com.google.android.vending.licensing.LicenseValidator.handleApplicationError(LicenseValidator.java:218)06-24 15:05:17.435 E/AndroidRuntime(19246): at com.google.android.vending.licensing.LicenseValidator.verify(LicenseValidator.java:190)06-24 15:05:17.435 E/AndroidRuntime(19246): at com.google.android.vending.licensing.LicenseChecker$ResultListener$2.run(LicenseChecker.java:228)
Thanks Daniel,
Your right about the error occuring in my handling code, but I think that is a result of a call from my GL thread to Google code with callback to Android created class and then calling back into GL thread. The usual android handler seems to be interferring with the GL thread, might be something to do with the default looper.
I'm sure Michael has already had to deal with it in SpellBound. I just took his pom profile for signed apk's but didn't see any other threads on the subject. This is the last piece of the puzzle.
Tim
--
---
You received this message because you are subscribed to a topic in the Google Groups "PlayN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/playn/ctbQzF0RUGc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to playn+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
06-24 15:05:22.765 E/ActivityThread(19246): Activity kyght.mygame.android.ShowcaseActivity has leaked ServiceConnection com.google.android.vending.licensing.LicenseChecker@405612d0 that was originally bound here06-24 15:05:22.765 E/ActivityThread(19246): android.app.ServiceConnectionLeaked: Activity kyght.mygame.android.ShowcaseActivity has leaked ServiceConnection com.google.android.vending.licensing.LicenseChecker@405612d0 that was originally bound here06-24 15:05:22.765 E/ActivityThread(19246): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:938)06-24 15:05:22.765 E/ActivityThread(19246): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:833)06-24 15:05:22.765 E/ActivityThread(19246): at android.app.ContextImpl.bindService(ContextImpl.java:927)06-24 15:05:22.765 E/ActivityThread(19246): at android.content.ContextWrapper.bindService(ContextWrapper.java:347)06-24 15:05:22.765 E/ActivityThread(19246): at com.google.android.vending.licensing.LicenseChecker.checkAccess(LicenseChecker.java:149)06-24 15:05:22.765 E/ActivityThread(19246): at kyght.mygame.android.ShowcaseActivity.doLicenseCheck(ShowcaseActivity.java:85)06-24 15:05:22.765 E/ActivityThread(19246): at kyght.mygame.android.ShowcaseActivity.CreateLicenseCheck(ShowcaseActivity.java:80)06-24 15:05:22.765 E/ActivityThread(19246): at kyght.mygame.android.ShowcaseActivity$1.run(ShowcaseActivity.java:55)
Thanks Daniel,
Yes, I'm still using 1.6. Waiting until after version one of game to move to 1.7. I have to fix all my box 2d calls to work with native box and I don't really want to get into it yet.
I will double check my calls. Maybe your right and the activity state or lifecycle is messed up.
Tim
--
I'm having an issue with Google Play Licensing and PlayN. I've used it before and started with that working code base.
public void main(){mHandler = new Handler();new Thread(new Runnable() {public void run() { CreateLicenseCheck(); } }).start();PlayN.run(game);}
private void displayResult(final String result, final boolean allowusage) {mHandler.post(new Runnable() {public void run() {mLicenseValid = allowusage;if (!allowusage) {LicenseNotValid(result);}}});}
Yes, I'm still using 1.6. Waiting until after version one of game to move to 1.7. I have to fix all my box 2d calls to work with native box and I don't really want to get into it yet.
Just out of curiosity, what's the speed differential between native box2d and the java version? Tim, have you done any tests? Is Libgdx onto something with their approach, or are the gains marginal?