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,
Raghu

--~--~---------~--~----~------------~-------~--~----~



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)
 http://commonsware.com 
_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:
    http://downloads.0xlab.org/toolchain/armv5te/

Combination:
 * 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:
    http://gitorious.org/android-toolchain

# 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'
--with-gmp=/home/jserv/0xlab-toolchain/build/temp-install
--with-mpfr=/home/jserv/0xlab-toolchain/build/temp-install
--with-ppl=/home/jserv/0xlab-toolchain/build/temp-install
--with-cloog=/home/jserv/0xlab-toolchain/build/temp-install
--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-arch=armv5te
--with-sysroot=/home/jserv/android-toolchain/sysroot
--with-gmp-version=4.2.4 --with-mpfr-version=2.4.1
--with-gdb-version=7.1.x
--with-multilib-list=mthumb-interwork,mandroid
--program-transform-name='s&^&arm-eabi-&'
Thread model: single
gcc version 4.4.4 (0xlab 2010.11-0)

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

Sincerely,
Jim Huang (jserv)
http://0xlab.org/

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

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

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


http://mantugaul.wordpress.com/2010/11/08/review-android-gps-phone-garminasus-a10-the-best-of-both-sides/

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

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