Whether on Android or iPhone, for an opengl surface you will have methods such as: onSurfaceCreated and onSurfaceChanged , get used to gaining shape and attributes here in these two methods.
The only way to speed up rendering (which will soon become your priority when your code crosses 1000 lines of code) is just gluseprogram, glbindbuffer, texture binding and other bindings inside the onDrawFrame method, always cache variables inside onSurfaceCreated and onSurfaceChanged
GLES
source share