The following code causes a back arrow to appear in the ActionBar:
getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setDisplayHomeAsU
You can easily create a back arrow using Android asset studio.
Click on res folder and then right click on drawable -> New -> Vector Asset
res
drawable -> New -> Vector Asset