Code example for GLSurfaceView

Methods: onPause

0
    @Override 
    protected void onPause() { 
        // Ideally a game should implement onResume() and onPause() 
        // to take appropriate action when the activity looses focus 
        super.onPause(); 
        mGLSurfaceView.onPause();
    } 
 
    private GLSurfaceView mGLSurfaceView;
} 
Contextual code suggestions in your IDE  Get Codota for Java