The following code causes a back arrow to appear in the ActionBar:
getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDisplayHomeAsU
If you have the support library in your project, you can make a back button in any place in your applicaction like this:
Specifically the resource for the back arrow is ?attr/homeAsUpIndicator.
?attr/homeAsUpIndicator