3

I have develop an application that have functionality of google cloud messaging so i am used latest google play service and as development tool is android studio so i get code for gcm from android developer site http://developer.android.com/google/gcm/client.html and then i checked google play services available or not on start up of application

 public boolean checkPlayServices(Activity activity) {
    int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
    if (resultCode != ConnectionResult.SUCCESS) {
        if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
            GooglePlayServicesUtil.getErrorDialog(resultCode, activity,
                    PLAY_SERVICES_RESOLUTION_REQUEST).show();
        } else {
            activity.finish();
        }
        return false;
    }
    return true;
}

but it always return this message "This app wont run unless you update Google play services enter image description here

Jaffer Wilson
  • 7,029
  • 10
  • 62
  • 139
Android_Paradise
  • 325
  • 1
  • 5
  • 15
  • 1
    I have similar problem. Do you found solution? upd: This works for me. [http://stackoverflow.com/questions/25198291/google-play-services-version-5-2-08-too-recent-for-my-device](http://stackoverflow.com/questions/25198291/google-play-services-version-5-2-08-too-recent-for-my-device) – ydanila Aug 29 '14 at 16:36

0 Answers0