Code example for GLSurfaceView

Methods: onPause

0
		super.onPause(); 
		// The following call pauses the rendering thread. 
		// If your OpenGL application is memory intensive, 
		// you should consider de-allocating objects that 
		// consume significant memory here. 
		mGLView.onPause();
	} 
 
	@Override 
	protected void onResume() { 
		super.onResume(); 
		// The following call resumes a paused rendering thread. 
		// If you de-allocated graphic objects for onPause() 
		// this is a good place to re-allocate them. 
		mGLView.onResume();
	} 
 
	// ***** ***** ***** ***** ***** 4 main buttons 
 
	public boolean bBlockMainKey_Back = false; // return
	public boolean bBlockMainKey_Menu = false; // Context,options