has GLES - Android android.content.pm

Android examples for android.content.pm:ConfigurationInfo

Description

has GLES

Demo Code


//package com.java2s;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ConfigurationInfo;

public class Main {
    private static boolean hasGLES20(Context context) {
        ActivityManager am = (ActivityManager) context
                .getSystemService(Context.ACTIVITY_SERVICE);
        ConfigurationInfo info = am.getDeviceConfigurationInfo();
        return info.reqGlEsVersion >= 0x20000;
    }//from   www.  j a v  a2 s .c  o  m
}

Related Tutorials