Remapping Key Functions

by Raghu D K » Tue, 06 Jan 2009 01:14:00 GMT

Sponsored Links
 Hello All,

How do I map the keys to perform specific functions depending on the
application ?
For example:

Key 108 DPOD_UP      // For scrolling up in a Browser application
Key 108 VOLUME_UP // For Volume increase in the a Multimetia application

Warm Regards,


Remapping Key Functions

by Mark Murphy » Tue, 06 Jan 2009 01:28:21 GMT


Implement onKeyDown() or similar methods in your activities.

Mark Murphy (a Commons Guy) 
_The Busy Coder's Guide to Android Development_ Version 1.9 Published!


Sponsored Links

Other Threads

1. Unit Testing


Is there any tutorial on the instrumentation test framework, videos
and stuff for 1.6? It would be nice if the tutorials make use of the
Android Eclipse plugin.



2. Settings.Secure.HTTP_PROXY (and proxy behaviour in general)

Dear anyone,

1) I am wondering if someone can shed a light on this. As I understand
it, Settings.Secure.HTTP_PROXY cannot be modified unless the
application has been signed by the platform certificate; does this
mean that it is up to the phone manufacturer (in conjunction with the
carrier, i suppose?) to release code which could modify this setting?
(Even with WRITE_SECURE_SETTINGS permission, my application[*] is not
allowed to create or modify this setting.)

2) It is possible to modify this value on rooted phones by directly
accessing the "secure" table in the corresponding database. However,
when this value is changed, I have noticed the following oddness
(which to me sounds like a bug):

    i) When the phone is connected to the carrier's network (not
wifi), it appears that (all?) applications honour the HTTP_PROXY
setting (e.g. it appears gmail and various browsers work just fine
through ConnectBot)

   ii) However, when the phone is connected wirelessly (wifi), most,
if not all, applications will ignore the value of HTTP_PROXY. For my
tests, it appears that Dolphin Browser sends the first two requests
via the configured proxy, and then all subsequent requests go direct.

Does anyone have an answer to this? Can we expect this to change? Or
do we need to ask developers of HTTP based applications to change
their code?

Thanks for reading,


[*] /


3. How can I add a transparent & scalable marker on Google map?

4. Better Keyboard 4.3

5. Using OS 1.6 and Up , are we penalized on the market ?

6. Tanya: download APK langsung di handset

7. Galerry nexus