Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int GooglePlayServicesCheckCode = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context);
- if (GooglePlayServicesCheckCode != ConnectionResult.SUCCESS) {
- Dialog error = GoogleApiAvailability
- .getInstance()
- .getErrorDialog(OnStart.this, GooglePlayServicesCheckCode,RC_GOOGLE_PLAY_SERVICES_CHECK);
- error.setOnCancelListener(dialogInterface -> {
- finish();
- });
- error.show();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement