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. Running JUnit 4 Tests on Android Device

Hello,

As the first step of the port of my existing Java swing application to
Android, I'd like to get the non-UI logic unit tests running on the
Android device.  The unit tests are written against JUnit 4.  It looks
like Android 2.2 comes with JUnit 3 as the default.  Is there an easy
way (or any way) to bootstrap JUnit 4 as the test runner?

I am using IDEA as my dev environment, but it doesn't appear there's
any settings that will allow me to specify JUnit 4.

- Eric

-- 

2. Calling the stop() function of MediaPlayer

Hi! I don't know if I'm doing something wrong, but I see calling the
stop function of MediaPlayer simply does nothing. The playback goes
on. I looked in the documentation and I found:

"Stops playback after playback has been stopped or paused."

So, I tried to pause() it before stopping, but the MediaPlayer then
pauses and resumes the playback. The only thing I can see is that the
buffering stops. But the playback continues. Is this the expected
behavior? Could the problem be related to the fact that I call the
methods of the MediaPlayer object from different threads than the
creator by synchronizing with Semaphores?
Thanks!

-- 

3. Failed installs

4. installing sdk problems

5. vibrate() does not behave according to API docs (HTC Desire)

6. Overrides for code as well as resources

7. How to reduced size of Android Emulator come up with SDK