Possible Duplicate:
Disable back button in android
in my app to from one activity to other just like A->B->C or C->A i have placed buttons because the operations of the app are like that. So there is no need for the default back button of android. If the user wrongly clicks there should not be any operation done. For this how to disable the back button.
If you don’t want to return to a specific Activity, another approach would be to call finish() after
startActivity()from Activity B.Code snippet: