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