Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. int GooglePlayServicesCheckCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);
  2. if (GooglePlayServicesCheckCode != ConnectionResult.SUCCESS) {
  3. Dialog error = GoogleApiAvailability
  4. .getInstance()
  5. .getErrorDialog(OnStart.this, GooglePlayServicesCheckCode,RC_GOOGLE_PLAY_SERVICES_CHECK);
  6.  
  7. error.setOnCancelListener(dialogInterface -> {
  8. finish();
  9. });
  10. error.show();
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement