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.
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.1m questions
2.1m answers
60 comments
57.0k users