Extending KeyEvent (or another way of adding new KeyCodes)

by Chih-Wei » Fri, 26 Mar 2010 09:34:03 GMT


Sponsored Links
 Why do you need to add new keycode if it only has 4 buttons?
What functions do you expect to add?

If you really want to do, see my patch for how to add
PageUp & PageDown to android.

https://review.source.android.com/#change,10065

(it is verified, but I don't understand why it's still not been added
to AOSP)





-- 


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.



Extending KeyEvent (or another way of adding new KeyCodes)

by Dianne Hackborn » Fri, 26 Mar 2010 10:31:33 GMT


 We request that you contribute a patch for any new keycodes you would like,
so that we can maintain a single, consistent list of keycodes for the
platform.




> website: 


Sponsored Links


Extending KeyEvent (or another way of adding new KeyCodes)

by Ashwin Bihari » Fri, 26 Mar 2010 20:13:24 GMT


 Dianne,

Is there really value in adding keycodes that only have any
bearing/use for certain devices? if that is the case, it might be
better for Google to define a dozen or so USER buttons, that can be
used by any application.

Either way, can you suggest a method of adding keycodes that doesn't
require changing the base SDK and the KeyEvent.java file?

Thanks
-- 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.



Other Threads

1. Catching an action without setting an intent filter?

I'm trying to catch an action like ACTION_HEADSET_PLUG.  But I think
it might be too much to set this action on the manifest file.

How could I register a listener for this action?  I only need to care
about it when my application is running not all the time as I think it
would happen when registering it under the manifest file...

Thanks!
-Moto!

2. A good place to start learning Java?

Were would be a good place to start learning Java?  I have done some limited
VB.net and fairly extensive VB.script programming.  I am not even sure I
installed the android Dev properly.  Any help greatly appreciated.

3. android_power: sleep and then stuck up

4. Android code compatibility with GWT

5. Prolonged touching (>30s) in one area causes onTouchEvent to stop registering?

6. How to use the "Object android.widget.AdapterView.getItemAtPosition(int position)"

7. OpenGL ES 1.1 question (one more time...)