Code example for OrientationEventListener

Methods: enable

0
			public void onOrientationChanged(int orientationAngle) {
				nativeRotated(orientationAngle);
			} 
		}; 
		 
		m_orientationEventListener.enable();
    } 
 
    @Override 
    protected void onPause() { 
        super.onPause(); 
        mGLView.onPause();
    } 
 
    @Override 
    protected void onResume() { 
        super.onResume(); 
        mGLView.onResume();
    } 
 
	private GLSurfaceView mGLView;