Hi, Just add this method to your activity.
Best Regards. @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK) { your code here } return .....; } 2009/8/27 cindy <ypu01...@yahoo.com> > > In current activity, when user click the back key, I don't what it > back to the last activity. > Can I add a listener to listen to back key in current activity? When > user click "back" key, it actually back to the activity I want it to > go. > > Thanks! > > Cindy > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---