Latest product reviews
ARCHOS 50 Diamond
ARCHOS GamePad2
ARCHOS
Smartphones
ARCHOS
TV Connect
ARCHOS 101 XS

A A A
Avatar

Please consider registering
Guest

Search

— Forum Scope —






— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Register Lost password?

ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288

 Please donate to support OMA and CrewRKTablets firmware work, thank you !

sp_Feed sp_TopicIcon
how to remap hardware button to ICS recent apps
Avatar
alex
Member
Forum Posts: 252
Member Since:
2011/12/27
sp_UserOfflineSmall Offline
1
2012/06/20 - 23:12
sp_Permalink sp_Print

before i start i would just like to say i found this guide on xda and can take no credit... right moving on

1) change source code related to APP_SWITCH keycode.

platform/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

from :

Code:
        } else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0) {
showOrHideRecentAppsDialog(RECENT_APPS_BEHAVIOR_SHOW_OR_DISMISS);
}
return -1;
}

to :

Code:
        } else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0 && !keyguardOn) {
try {
mStatusBarService.toggleRecentApps();
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
}
return -1;
}

2) edit your keylayout files..

/system/usr/keylayout/

for example, if you want to use search key to recent apps on nexus s...

im not sure for archos/ arnova devices but i guess if u are reading this post in this forum section u can find them 😛

idont think the keys are the same especially considering you may have a hard time finding a search button

cypress-touchkey.kl

Code:
key 139    MENU           VIRTUAL
key 102 HOME VIRTUAL
key 158 BACK VIRTUAL
key 217 APP_SWITCH VIRTUAL

and mxt224_ts_input.kl (it would be better to edit both files..)

Code:
key 158   BACK              WAKE
key 139 MENU WAKE
key 217 APP_SWITCH WAKE
key 102 HOME WAKE

done!

"The best person in the world, at the moment" -imstookatboot

Avatar
alex
Member
Forum Posts: 252
Member Since:
2011/12/27
sp_UserOfflineSmall Offline
2
2012/06/20 - 23:14
sp_Permalink sp_Print sp_EditHistory

"The best person in the world, at the moment" -imstookatboot

Forum Timezone: Europe/Paris

Most Users Ever Online: 749

Currently Online: murigny64, maikas, pressmanok, bogumil83, tariom18m
208 Guest(s)

Currently Browsing this Page:
1 Guest(s)


Devices in use: Desktop (171), Phone (37), Tablet (5)

Top Posters:

Oma7144: 5664

globula_neagra: 2424

finless: 604

DarthJabba: 551

exelletor: 450

JochenKauz: 450

cracktech: 430

maikal: 394

Newest Members:

tariom18m

bogumil83

pressmanok

snkoval

maikas

ohuelves

Forum Stats:

Groups: 10

Forums: 185

Topics: 5884

Posts: 58437

 

Member Stats:

Guest Posters: 43

Members: 255313

Moderators: 5

Admins: 1

Administrators: admin

Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech


CrewRKTablets moderators: JochenKauz and Astralix