That's what I'm doing. He asks the user to install Google Play Services, if it is not available, or the current version (for Google Maps).
final int RQS_GooglePlayServices = 1; // Check status of Google Play Services int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); // Check Google Play Service Available try { if (status != ConnectionResult.SUCCESS) { GooglePlayServicesUtil.getErrorDialog(status, this, RQS_GooglePlayServices).show(); } } catch (Exception e) { Log.e("Error: GooglePlayServiceUtil: ", "" + e); }
If you are using API19, you will need the following in the manifest.
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
source share