Extending KeyEvent (or another way of adding new KeyCodes)

by Dianne Hackborn » Fri, 26 Mar 2010 10:32:28 GMT

Sponsored Links
 Sorry I forgot to review this.  Could you rebase and upload a new patch, and
I will submit it?  Thanks.

> website: 

Extending KeyEvent (or another way of adding new KeyCodes)

by Ashwin Bihari » Fri, 26 Mar 2010 20:11:25 GMT


I know how to add new KEYCODE's to the KeyEvent, but I want to avoid
that. The 4 buttons are essentially defined as S1, S2, S3 and S4 and
their functionality will change based on what the application wants
them to be. In some instances they'll function as volume up/down and
channel up/down buttons, in other instances something else, either way
they application dependent.

I also do not want to submit these KEYCODEs to be included in the
standard SDK as they don't have a specific defined purpose AND (and
that's a VERY big and) the user would have to be using the device that
we are building which isn't for commercial use..

So I would really appreciate any pointers on adding KEYCODES
separately from the SDK's KeyEvent system but still using the
onKeyUp/onKeyDown system to send my KEYCODES..

-- Ashwin


To unsubscribe from this group, send email to 
android-porting+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Sponsored Links

Other Threads

1. App not running

I'm about to get a G2, so I decided to start developing for it.
I decided to go for nbAndroid (Android plugin for NetBeans) as I'm a
NetBeans user. No success.
I tried to use ADT (for Eclipse). No success.
I created the AVD and then a project. I run the project but the app is not
shown. I only get the ANDROID_ message.

On windows I get from compiler the message "Result: -1". On linux "Result:

What I get: http://img246.imageshack.us/img246/2192/android.png

Is there anyone who could help me?


Eros Eduardo Stein
Tcnico de Informtica / Em breve analista.
USE >> http://www.ekaaty.org


2. for the General Public

Is this release for the general public, I am beginning to feel that it
is not.If not when it be released for the general public to download
and update from their 1.5?


3. Camera picture path in Android Application

4. complex sample application

5. Code protection

6. Android for Joggers & Walkers

7. Don't believe me on my stats? SEE THIS VIDEO Download....