Skip to content

Instantly share code, notes, and snippets.

@alvareztech
Created October 9, 2020 13:42
Show Gist options
  • Save alvareztech/df4a11dfce2e0727bf4fd66197214e56 to your computer and use it in GitHub Desktop.
Save alvareztech/df4a11dfce2e0727bf4fd66197214e56 to your computer and use it in GitHub Desktop.
Ask about the availability of Google Play Services.
public static boolean isGMSAvailable(Context context) {
return GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) == ConnectionResult.SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment