比如我按我界面上的按钮 就等于 按了后退键
------解决方案--------------------
Override this method.
/**
* 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.
*/
public void onBackPressed() {
finish();
}