Code example for ActionBarActivity

Methods: onPostCreate

0
        ft.commit();
    } 
     
    @Override 
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
        // Sync the toggle state after onRestoreInstanceState has occurred. 
        mDrawerToggle.syncState();
    } 
 
    @Override 
    public void onConfigurationChanged(Configuration newConfig) {
        super.onConfigurationChanged(newConfig);
        mDrawerToggle.onConfigurationChanged(newConfig);
    } 
 
	@Override 
	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		if (position == 0) {
	        FragmentTransaction ft = mFM.beginTransaction();
	        MainFragment fragment = new MainFragment();