When does isGooglePlayServicesAvailable return SERVICE_VERSION_UPDATE_REQUIRED?

后端 未结 5 1222
清酒与你
清酒与你 2020-12-17 09:32

According to the documentation GooglePlayServicesUtil.isGooglePlayServicesAvailable returns SERVICE_VERSION_UPDATE_REQUIRED when \"The installed version of Google Play servi

5条回答
  •  离开以前
    2020-12-17 10:20

    this means that the version of google play service you included in your app is higher than the one currently installed on the users device. the user needs to update their google play services in-order for your app to work correctly.

    if the result comes back with that error you can simply call this method to alert the user they need to update and it will take them there.

    GooglePlayServicesUtil.getErrorDialog(result, this, GOOGLE_PLAY_SERVICE_UPDATE_CODE).show();
    

    result is the result of the isGooglePlayServicesAvailable method

提交回复
热议问题