The method is called when the viewport is resized or first created. This feature is the first place where you know exactly how many pixels your GlSurfaceView occupies.
In this method, it would be appropriate to set the viewport and possibly adjust the projection matrix.
For example, if the screen rotates from vertical to horizontal, the size of the viewport may change, so you must reset your view and projection matrices.