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();
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java