Code example for FragmentActivity

Methods: getSupportActionBar, onCreate, setContentView

1
		this.menu = menu;
	} 
 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		log("onCreate"); 
		actionBar = getSupportActionBar();
		actionBar.setDisplayHomeAsUpEnabled(true);
 
		if (layout != 0) {
			setContentView(layout);
		} 
 
		view = Objects.createInstance(viewClass, Activity.class, this);
	} 
 
	@Override 
	protected void onStart() { 
		super.onStart(); 
		log("onStart");