By implementing onKeyDown you can control key events
may be this will help you @Override public boolean onKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub //return super.onKeyDown(keyCode, event); Log.i(getClass().getSimpleName()," onKeyDown(int keyCode, KeyEvent event) called ****** "); if(keyCode == KeyEvent.KEYCODE_BACK) { Log.i(getClass().getSimpleName()," back key pressed ****************"); } return true; } Thank you, Dilli Rao On Tue, Sep 8, 2009 at 3:36 PM, sasi kumar <sasikumar.it1...@gmail.com>wrote: > use key lisener.......... > > > On Tue, Sep 8, 2009 at 3:34 PM, sasi kumar <sasikumar.it1...@gmail.com>wrote: > >> can any one give example for key lisener >> >> -- >> Thanks & Regards >> Sasi Kumar.S >> > > > > -- > Thanks & Regards > Sasi Kumar.S > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---