This is the code from the Android Developer example "Displaying Graphics with OpenGL ES" from http://developer.android.com/training/graphics/opengl/index.html but the code may change as we experiment with it.