-1

I have the app where I need to notify the user that he needs to update Google play services and redirect him to an Play Market on Play Services app page. Can you help me? Thank you in advance!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
user6075877
  • 157
  • 2
  • 10

1 Answers1

0

Place this in your manifest

<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

and this code in your activity

   // 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);
}
Shaz Hemani
  • 469
  • 2
  • 10