Add this in your onCLick() method, it will go back to your previous activity
finish();
or You can use this. It worked perfectly for me
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if ( id == android.R.id.home ) {
finish();
return true;
}
return super.onOptionsItemSelected(item);
}