android start activity and back app bar code example Example: android add back button to toolbar programmatically actionBar.setDisplayHomeAsUpEnabled(true);