Created
November 29, 2016 12:55
-
-
Save shihabmi7/25786690d2282b47e9e5acbee98e5f7a to your computer and use it in GitHub Desktop.
google play service available
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
// Checking if Google Play Services Available or not | |
private boolean isGooglePlayServicesAvailable() { | |
GoogleApiAvailability googleAPI = GoogleApiAvailability.getInstance(); | |
int result = googleAPI.isGooglePlayServicesAvailable(this); | |
if(result != ConnectionResult.SUCCESS) { | |
if(googleAPI.isUserResolvableError(result)) { | |
googleAPI.getErrorDialog(this, result, | |
0).show(); | |
} | |
return false; | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment