When does isGooglePlayServicesAvailable return SERVICE_VERSION_UPDATE_REQUIRED?

后端 未结 5 1236
清酒与你
清酒与你 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:16

    Does this mean that there is a new version of google play services in the play store?

    From the site latest update was on December 2014

    Does this mean that the app needs a newer version than the one that is currently installed in the device?

    You can check if the device has the higher version ofGoogle Play Service than the one on your app like so:

        int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable( getApplicationContext() );
    if(status == ConnectionResult.SUCCESS) {
       //OK
    }else if(status == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED){
       Toast.makeText(context,"please udpate your google play service",Toast.LENGTH_SHORT).show
    }
    

提交回复
热议问题