// Getting status
int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());
// Showing status
if (status == ConnectionResult.SUCCESS) {
// Do something on success
} else {
// Do something on error
// Show the dialog to download google play services
int requestCode = 10;
Dialog dialog = GooglePlayServicesUtil.getErrorDialog(status, this, requestCode);
dialog.show();
}
No hay comentarios:
Publicar un comentario