Code example for ActivityManager

Methods: getDeviceConfigurationInfo

0
 
    private boolean detectOpenGLES20() 
    { 
        ActivityManager am =
                (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE);
        ConfigurationInfo info = am.getDeviceConfigurationInfo();
        return (info.reqGlEsVersion >= 0x20000);
    } 
 
    static { 
        System.loadLibrary("hellocpp");
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java