Code example for ActionBar

Methods: setHomeButtonEnabled

0
		} 
	} 
 
	public void setHomeButtonEnabled(boolean b) {
		if (mInstance != null) {
			mInstance.setHomeButtonEnabled(b);
		} 
	} 
 
	// show an icon in the actionbar if there is room for it. 
	public static void showIfRoom(MenuItem item1) {
		item1.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);
	} 
 
	public static void invalidateOptionsMenu(Activity a) {
		a.invalidateOptionsMenu();
	} 
}