I\'m using the new toolbar from the Appcompat V7 library and I\'m making an application with navigation drawer and with fragments.
In some fragments I don\'t want to sho
activate the back button:
getActionBar().setDisplayHomeAsUpEnabled(enable);
and listen for clicks in onBackPressed()
onBackPressed()
Obviously your activity must extend ActionBarActivity
ActionBarActivity