how to add back button in action bar android studio code example Example: android add back button to toolbar programmatically actionBar.setDisplayHomeAsUpEnabled(true);