Code example for FragmentActivity

Methods: onKeyLongPress

0
		if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
			//BACK KEY LONG = "open menu". 
			openOptionsMenu(); 
			return true; 
		} 
		return super.onKeyLongPress(keyCode, event);
	} 
     
	/* 
	 * ONCREATE... 
	 *  
	 */ 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.singlepane); 
		//background; 
		setBackgroundColor(); 
		/* 
		 * Load Bkmk. Set to Adapter. 
		 */