get GPU Info - Android Hardware

Android examples for Hardware:GPU

Description

get GPU Info

Demo Code


//package com.java2s;

import javax.microedition.khronos.opengles.GL10;

public class Main {

    public static final String[] getGPUInfo(GL10 gl10) {
        try {/*  ww  w .  j a  v a  2 s .c o m*/
            String[] result = new String[3];
            result[0] = gl10.glGetString(GL10.GL_RENDERER);
            result[1] = gl10.glGetString(GL10.GL_VENDOR);
            result[2] = gl10.glGetString(GL10.GL_VERSION);
            return result;
        } catch (Exception localException) {
        }
        return new String[0];
    }
}

Related Tutorials