android activity with back button in toolbar code example Example: android add back button to toolbar programmatically actionBar.setDisplayHomeAsUpEnabled(true);