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