public static boolean isGoogleMapsV2Supported ( final Context aContext ) { try { // first check if Google Play Services is available int resultCode = GooglePlayServicesUtil . isGooglePlayServicesAvailable ( aContext ) ; if ( resultCode == ConnectionResult . SUCCESS ) { // then check if OpenGL ES 2.0 is available final ActivityManager activityManager = ( ActivityManager ) aContext . getSystemService ( Context . ACTIVITY_SERVICE ) ; final ConfigurationInfo configurationInfo = activityManager . getDeviceConfigurationInfo ( ) ; return configurationInfo . reqGlEsVersion >= 0x20000 ; } } catch ( Throwable e ) { } return false ; }
Check whether Google Maps v2 is supported on this device .