Code example for FragmentActivity

Methods: onKeyDown

0
	public boolean onKeyDown(int keyCode, KeyEvent event) { 
		if(keyCode == KeyEvent.KEYCODE_BACK){ 
			mSlideoutHelper.close(); 
			return true; 
		} 
		return super.onKeyDown(keyCode, event); 
	} 
 
 
	public SlideoutHelper getSlideoutHelper(){ 
		return mSlideoutHelper; 
	} 
	 
	private SlideoutHelper mSlideoutHelper; 
 
}