Code example for ActivityManager

Methods: getDeviceConfigurationInfo

0
    // IsSupported 
    // Return true if this device support Open GL ES 2.0 rendering. 
    public static boolean IsSupported(Context context) {
        ActivityManager am =
                (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
        ConfigurationInfo info = am.getDeviceConfigurationInfo();
        if(info.reqGlEsVersion >= 0x20000) {
            // Open GL ES 2.0 is supported. 
            return true; 
        } 
        return false; 
    } 
 
    public void onDrawFrame(GL10 gl) {
        nativeFunctionLock.lock();
        if(!nativeFunctionsRegisted || !surfaceCreated) {
            nativeFunctionLock.unlock();
            return; 
        } 
 
        if(!openGLCreated) {