Created
October 7, 2016 15:20
-
-
Save joswr1ght/383168067f36f2f09c94087e09927cff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean checkGooglePlayStore(Context context) { | |
String installerPackageName = context.getPackageManager().getInstallerPackageName(context.getPackageName()); | |
return installerPackageName != null && installerPackageName.startsWith(" com.google.android"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment