You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
I just checkout your code and try to launch the sample (life game).
I had a crash with it while installing it through adb.
That was because my packageManager.getInstallerPackageName was called with a wrong package name inside the class “GooglePlay.java” in your library.
I looked into the code and found:
String packageName = mContext.getApplicationContext().getClass().getPackage().getName(); // This does not return the package name of the app in my case (with a nexus 7)
String installerPackageName = packageManager.getInstallerPackageName(packageName);
I think there is an error, stop me if I’m wrong:
String packageName = mContext.getApplicationContext().getPackageName();
Should be better.
getClass().getPackage().getName(); does not always return the package name of the app, it depend on many things, one of them is the constructor of your phone … (Welcome in Android world).
The text was updated successfully, but these errors were encountered:
I just checkout your code and try to launch the sample (life game).
I had a crash with it while installing it through adb.
That was because my packageManager.getInstallerPackageName was called with a wrong package name inside the class “GooglePlay.java” in your library.
I looked into the code and found:
String packageName = mContext.getApplicationContext().getClass().getPackage().getName(); // This does not return the package name of the app in my case (with a nexus 7)
String installerPackageName = packageManager.getInstallerPackageName(packageName);
I think there is an error, stop me if I’m wrong:
String packageName = mContext.getApplicationContext().getPackageName();
Should be better.
getClass().getPackage().getName(); does not always return the package name of the app, it depend on many things, one of them is the constructor of your phone … (Welcome in Android world).
The text was updated successfully, but these errors were encountered: