question: public static boolean hasGooglePlayServices ( final Context context ) { if ( context == null ) { throw new NullPointerException ( "context cannot be null" ) ; } GoogleApiAvailability googleAPI = GoogleApiAvailability . getInstance ( ) ; int result = googleAPI . isGooglePlayServicesAvailable ( context ) ; if ( result != ConnectionResult . SUCCESS ) { return false ; } return true ; }
target:  Checks to see if Play Services are available on device