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