Use the onBackPressed() method of Activity. From the
manual:
Quote:
|
Called when the activity has detected the user's press of the back key. The default implementation simply finishes the current activity, but you can override this to do whatever you want.
|