Code example for OrientationEventListener

Methods: disable

0
	    orientationListener.enable();
	} 
	@Override 
	public void onPause(){ 
	    super.onPause(); 
	    orientationListener.disable();
	} 
	public void onBackPressed() { 
		//override and disable back button 
		Bundle conData = new Bundle();
		   conData.putString(LANDSCAPE_ACTIVITY_TAG, FINISH_APP);
		   Intent intent = new Intent();
		   intent.putExtras(conData);
		   setResult(RESULT_OK, intent);
		   finish();
		 
	} 
	@Override 
	public void onClick(View arg0) {
		// TODO Auto-generated method stub 
		Utilities.getLog(TAG,arg0.toString());