@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 = SUCCESS1 = SERVICEMISSING2 = SERVICEVERSIONUPDATEREQUIRED3 = SERVICEDISABLED4 = SIGNINREQUIRED5 = INVALIDACCOUNT6 = RESOLUTIONREQUIRED7 = NETWORKACCOUNT8 = INTERNALERROR9 = SERVICEINVALID10 = DEVELOPER_ERROR
No comments :
Post a Comment