Code example for OrientationEventListener

Methods: disable

0
	} 
 
	@Override 
	protected void onPause() { 
		super.onPause(); 
		oel.disable();
	} 
 
	@Override 
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_rotacao_por_listener, menu);
		return true; 
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java