Here is an example: 
http://whyandroid.com/android/227-tipster-building-a-tip-calculator-for-the-android-os.html



Yusuf Saib
Android
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.



On Sep 9, 7:50 am, dilli rao <dilliraomca...@gmail.com> wrote:
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to