Skip to content

Instantly share code, notes, and snippets.

@shihabmi7
Created November 29, 2016 12:55
Show Gist options
  • Save shihabmi7/25786690d2282b47e9e5acbee98e5f7a to your computer and use it in GitHub Desktop.
Save shihabmi7/25786690d2282b47e9e5acbee98e5f7a to your computer and use it in GitHub Desktop.
google play service available
// 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