Code example for GLSurfaceView

Methods: onResume

0
	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
	public boolean bBlockMainKey_Search = false;
 
	// ~ public boolean bBlockMainKey_Home = false; // home cannot be blocked or 
	// directly detected, only activity:onUserLeaveHint(), 
	// home block prevented by os : 
	// http://groups.google.com/group/android-developers/browse_thread/thread/6ad5d53f5e8c8013 
 
	public void setBlockMainKey_Back(boolean bBlocked) {
		bBlockMainKey_Back = bBlocked;