Android - Google Map v2 - need to update google play service on the device

I use SDK 21 and I am developing on google map v2 when I want to install apk on a device, the device requires the latest version of google play service.

My questions:

1 - Android devices support Google Play by default | 2 - is it right to contact the client with the request to install this service? 3 - if there are two questions - yes, how can I integrate this service into my project, I will just notify you about the client installation, and my project will install this service itself.

+1
source share
2 answers

1 - there are Android devices for Android.

No, not all devices have Google Play services installed by default.

2 - , ?
3 - - , ,

, Google Play GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);, , Google Play Google Play.

- :

int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
if (resultCode != ConnectionResult.SUCCESS) {
   if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
       GooglePlayServicesUtil.getErrorDialog(resultCode, this,
                    PLAY_SERVICES_RESOLUTION_REQUEST).show();
   } else {
       Log.i(TAG, "This device is not supported.");
       finish();
   }
}

: http://developer.android.com/google/play-services/setup.html#ensure

+6

Google Play, , API Google Maps V2 , .

, . , , , ​​ Google Play Store, .

+1

All Articles