Code example for FragmentActivity

Methods: onKeyDown

0
				if (keyCode == KeyEvent.KEYCODE_BACK
						&& ((PickFileListFragment) mFragment).pressBack())
					return true; 
			} 
 
		return super.onKeyDown(keyCode, event);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java