get activity with data on back press button on action bar android code example Example: android add back button to toolbar programmatically actionBar.setDisplayHomeAsUpEnabled(true);