@Override protected void onResume() { checkGooglePlayServicesAvailability(); super.onResume(); } public void checkGooglePlayServicesAvailability() { int statusCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if (statusCode == ConnectionResult.SUCCESS) { Log.d("Is Google Play services available?", "" + statusCode); } else { GooglePlayServicesUtil.getErrorDialog(statusCode, this, 0).show(); }
0 = SUCCESS 1 = SERVICEMISSING 2 = SERVICEVERSIONUPDATEREQUIRED 3 = SERVICEDISABLED 4 = SIGNINREQUIRED 5 = INVALIDACCOUNT 6 = RESOLUTIONREQUIRED 7 = NETWORKACCOUNT 8 = INTERNALERROR 9 = SERVICEINVALID 10 = DEVELOPER_ERROR