I'm sorry I'm not sure how to do this with Android, but the glGetString function allows you to access OpenGL information. Here is an example C ++ style code that will output the extensions supported by your hardware, and I hope you can adapt to Android:
void PrettyPrintExtensions(){ std::string extensions = (const char*) glGetString(GL_EXTENSIONS); char* extensionStart = &extensions[0]; char** extension = &extensionStart; std::cout << "Supported OpenGL ES Extensions:" << std::endl; while (*extension) std::cout << '\t' << strsep(extension, " ") << std::endl; std::cout << std::endl; }
By changing the glGetString parameter, you can also access the provider, visualizer, and version. Please look:
http://www.khronos.org/opengles/sdk/1.1/docs/man/glGetString.xml
source share