- public static boolean isGooglePlayServiceAvailable (Context context) {
- int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
- if (status == ConnectionResult.SUCCESS) {
- Log.e("YXH", "GooglePlayServicesUtil service is available.");
- return true;
- } else {
- Log.e("YXH", "GooglePlayServicesUtil service is NOT available.");
- return false;
- }
- }