private boolean checkIfContextSupportsExtension(GL10 gl,String extension){
  String extensions=" " + gl.glGetString(GL10.GL_EXTENSIONS) + " ";
  return extensions.indexOf(" " + extension + " ") >= 0;
}

private boolean checkIfContextSupportsExtension ( GL10 gl , String extension ) { String extensions = " " + gl . glGetString ( GL10 . GL_EXTENSIONS ) + " " ; return extensions . indexOf ( " " + extension + " " ) >= 0 ; }
this is not the fastest way to check for an extension , but fine if we are only checking for a few extensions each time a context is created .
