How to check Google Mobile Services enable in device or not?
问题 I have to check if google services are active on the device. How can I check it? Looking just play services is enough? I need this check for Huawei services. 回答1: final int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if (status != ConnectionResult.SUCCESS) { Log.e(TAG, GooglePlayServicesUtil.getErrorString(status)); return false; } else { Log.i(TAG, GooglePlayServicesUtil.getErrorString(status)); return true; } 回答2: I think this code will help you final int status =