Closed GoogleCodeExporter closed 9 years ago
It is up to you choose the appropriate place in your app to do the following
steps to check for a valid Google Play services APK. For example, if Google
Play services is required for your app, you might want to do it when your app
first launches. On the other hand, if Google Play services is an optional part
of your app, you can do these checks if the user navigates to that portion of
your app:
Query for the status of Google Play services on the device with the
isGooglePlayServicesAvailable() method, which returns a result code.
If the result code is SUCCESS, then the Google Play services APK is up-to-date,
and you can proceed as normal.
If the result code is SERVICE_MISSING, SERVICE_VERSION_UPDATE_REQUIRED, or
SERVICE_DISABLED, then call getErrorDialog() to display an error message to the
user, which allows the user to download the APK from the Google Play Store or
enable it in the device's system settings.
Original comment by Nickolay...@gmail.com
on 4 Dec 2012 at 5:22
Original comment by Nickolay...@gmail.com
on 11 Dec 2012 at 7:37
Original comment by Nickolay...@gmail.com
on 6 Mar 2013 at 7:54
Original issue reported on code.google.com by
Nickolay...@gmail.com
on 4 Dec 2012 at 7:49