Class PlayServicesUtils


  • public class PlayServicesUtils
    extends java.lang.Object
    Util class for Google Play Services
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean checkPlayServices​(android.app.Activity activity)
      Check the device to make sure it has the Google Play Services APK.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayServicesUtils

        public PlayServicesUtils()
    • Method Detail

      • checkPlayServices

        public static boolean checkPlayServices​(android.app.Activity activity)
        Check the device to make sure it has the Google Play Services APK. If it doesn't, display a dialog that allows users to download the APK from the Google Play Store or enable it in the device's system settings.
        Parameters:
        activity - closed when device is does not support google play
        Returns:
        true if google play is avaialbe, else false