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. ANN: 0xlab's customized GNU Toolchain for Android (2010-11-0)

Hello list,

0xlab is glad to inform you of the latest customized GNU Toolchain for Android.

The prebuilt packages:

 * gcc-4.4.4 + Google/0xlab patches
 * binutils-2.19 + Google patches + gold linker
 * gdb-7.1 + Google patches

with ppl + cloog enabled.
source tree and toolchain builder:

# arm-eabi-gcc -v
Using built-in specs.
Target: arm-eabi
Configured with: .././../gcc/gcc-4.4.4/configure --prefix=/opt/android
--target=arm-eabi --host=i686-unknown-linux-gnu
--build=i686-unknown-linux-gnu --enable-languages=c,c++ --enable-gold
--with-pkgversion='0xlab 2010.11-0'
--disable-libssp --enable-threads --disable-nls --disable-libmudflap
--disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions
--disable-shared --disable-tls --enable-gold --with-float=soft
--with-fpu=vfp --with-arch=armv5te --enable-target-optspace
--with-abi=aapcs --prefix=/opt/android --disable-docs --disable-nls
--with-gcc-version=4.4.4 --with-binutils-version=2.19
--with-gmp-version=4.2.4 --with-mpfr-version=2.4.1
Thread model: single
gcc version 4.4.4 (0xlab 2010.11-0)

0xlab is about to migrate to Linaro Toolchain as the base.

Jim Huang (jserv)


2. Review Android GPS Phone Garminasus A10, The Best Of Both Sides 8 November 2010

Starred...nice inpoh, thanks...sol

"Indonesian Android Community [id-android]"

PING'S mobile
Email:  Ph. (021) 96087100
Yopie Ratjoen
Email:  Ph. 08977726681
Gila original
Email:  Ph. (031) 91555898

Aturan Jual/Kloteran ID-Android

3. wish to join you

4. I don't get any event such as onResume, onStart when the screen is turned on

5. Review Internet Indosat M2 VS Telkomsel Flash Unlimited 16 November 2010

6. alsa drivers on froyo

7. Paging Suhu Androider Pontianak