how to use key code.

Quickly share your Android Code Snippets here...

how to use key code.

Postby gunvantbattase » Sat Nov 20, 2010 8:24 am

hi friends,

tell me about how i use key code in services. like i have to use 2 number key long press event for my app.
thanks.............
gunvantbattase
Freshman
Freshman
 
Posts: 2
Joined: Sat Nov 20, 2010 8:13 am

Top

Re: how to use key code.

Postby Schermvlieger » Sat Nov 20, 2010 8:55 am

If you use the search function of this forum you will quickly find some examples
Schermvlieger
Senior Developer
Senior Developer
 
Posts: 159
Joined: Fri Feb 26, 2010 1:37 pm

Re: how to use key code.

Postby Openxcell » Tue Apr 12, 2011 10:25 am

gunvantbattase wrote:hi friends,

tell me about how i use key code in services. like i have to use 2 number key long press event for my app.
thanks.............


Key codes corresponds one-to-one individual keys on an input device. Many keys and key combinations serve quite different functions on different input devices so care must be taken when interpreting them. Always use the KeyCharacterMap associated with the input device when mapping keys to characters. Be aware that there may be multiple key input devices active at the same time and each will have its own key character map.
Openxcell
Experienced Developer
Experienced Developer
 
Posts: 79
Joined: Mon Mar 28, 2011 1:59 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 5 guests