Loading play-services-base/src/main/java/com/google/android/gms/common/GoogleApiAvailability.java +13 −0 Original line number Original line Diff line number Diff line Loading @@ -163,6 +163,19 @@ public class GoogleApiAvailability { return SUCCESS; return SUCCESS; } } /** * Verifies that Google Play services is installed and enabled on this device, and that the version installed on * this device is no older than the one required by this client or the version is not older than the one specified * in <code>minApkVersion</code>. * * @return status code indicating whether there was an error. Can be one of following in * {@link ConnectionResult}: SUCCESS, SERVICE_MISSING, SERVICE_UPDATING, * SERVICE_VERSION_UPDATE_REQUIRED, SERVICE_DISABLED, SERVICE_INVALID */ public int isGooglePlayServicesAvailable(Context context, int minApkVersion) { return isGooglePlayServicesAvailable(context); } /** /** * Determines whether an error can be resolved via user action. If true, proceed by calling * Determines whether an error can be resolved via user action. If true, proceed by calling * {@link #getErrorDialog(Activity, int, int)} and showing the dialog. * {@link #getErrorDialog(Activity, int, int)} and showing the dialog. Loading Loading
play-services-base/src/main/java/com/google/android/gms/common/GoogleApiAvailability.java +13 −0 Original line number Original line Diff line number Diff line Loading @@ -163,6 +163,19 @@ public class GoogleApiAvailability { return SUCCESS; return SUCCESS; } } /** * Verifies that Google Play services is installed and enabled on this device, and that the version installed on * this device is no older than the one required by this client or the version is not older than the one specified * in <code>minApkVersion</code>. * * @return status code indicating whether there was an error. Can be one of following in * {@link ConnectionResult}: SUCCESS, SERVICE_MISSING, SERVICE_UPDATING, * SERVICE_VERSION_UPDATE_REQUIRED, SERVICE_DISABLED, SERVICE_INVALID */ public int isGooglePlayServicesAvailable(Context context, int minApkVersion) { return isGooglePlayServicesAvailable(context); } /** /** * Determines whether an error can be resolved via user action. If true, proceed by calling * Determines whether an error can be resolved via user action. If true, proceed by calling * {@link #getErrorDialog(Activity, int, int)} and showing the dialog. * {@link #getErrorDialog(Activity, int, int)} and showing the dialog. Loading