Code example for FragmentActivity

Methods: onKeyDown

0
				if (keyCode == KeyEvent.KEYCODE_BACK
						&& ((PickFileListFragment) mFragment).pressBack())
					return true; 
			} 
 
		return super.onKeyDown(keyCode, event);
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java