Pressing the BACK button will effectively call finish() for you. No need to grab the BACK key.
I assume that your problem is that when you press the BACK key, it just goes back to the previous Activity in your application.
If so, make all actions "self-complete" when they start a new Activity in your application ....
startActivity(new Intent(this, MyNewActivity.class)); finish();
If you do this, there will be no Activity to return when you press BACK, and it will always return to the main screen.
source share