Code example for GLSurfaceView

Methods: onPause

0
     
    @Override 
    protected void onPause() { 
    	super.onPause(); 
    	if(mRajRenderer == null) return;
    	mSurfaceView.onPause();
    	mRajRenderer.onVisibilityChanged(false);
    } 
 
    @Override 
    protected void onStop() { 
    	super.onStop(); 
    } 
     
    @Override 
    protected void onDestroy() { 
        super.onDestroy(); 
        mRajRenderer.onSurfaceDestroyed();
        unbindDrawables(mLayout);
        System.gc();
    }