I'd like to remap the camera button to launch the voice recorder when suspended, but available as shutter button when in the camera app. Can this button be context sensitive like this?
I found a key mapping in the /system directory, and saw a keycode with the word CAMERA next to it. Is it just a matter of replacing CAMERA with the appropriate voice recorder binary?
Thanks!
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Thanks! Am I right that I would replace that action with the binary name of the voice recorder? Or is it the apk name?
Wife said we "had"to move to Cerritos, so we did.
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
I tried tasker but I dont see how to remap the Camera (FOCUS) button.
I changed an event (hardware - CAMERA Button) and added an action (load App) then applied.
The notification says, no profie activated? Why?
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Hey Kertong, needing to do same thing. Replaced my screen and keypad now only performs menu. I am in shell trying to find the right action. Can you describe what you edited the .kl to?
Option 1
2 apps combined together can remap camera
button remapper - remap camera to search fn
launcher key to set search to any app u want
Option 2
Use tasker
Tried Tasker, great program just couldn't get it to work right, but will be a great application when I get it all setup.
My resolution.
Instead of using applications...
I did 'adb shell'
went to /system/usr/keylayout
did 'vi surf_keypad.kl'
And edited key 212 which is Camera, with Back.
Although now the softpad doesn't function as Menu only. Atleast I can go back now.!
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
wyx said:
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
Click to expand...
Click to collapse
Seconded. Share!
http://forum.pocketables.net/showthread.php?t=9680
Related
Hello,
Does someone know a solution for mapping the hardware buttton that normaly launch internet explorer? I would like to use it for X/closing cause I'm already tired to go on the upper side of the screen. i.e. when you put a new meeting with the keyboard, it is hard to go to the cross (up and right) for "saving" the new meeting.
I just bought this phone cause it has a good harware keyboard, but it's not important for me to have a direct access to internet explorer.
Thanks for your replies!!
juju66 said:
Hello,
Does someone know a solution for mapping the hardware buttton that normaly launch internet explorer? I would like to use it for X/closing cause I'm already tired to go on the upper side of the screen. i.e. when you put a new meeting with the keyboard, it is hard to go to the cross (up and right) for "saving" the new meeting.
I just bought this phone cause it has a good harware keyboard, but it's not important for me to have a direct access to internet explorer.
Thanks for your replies!!
Click to expand...
Click to collapse
Which button are you talking about?
I use AE Button to assign the Voice Recorder button to the OK/Close function and it works brilliantly. You can assign single press, long press and double press to different functions. It's a great little app that takes up very little system resources.
I'd still like to know which button is the Internet Explorer button because I didn't know we had that feature!
EDIT: Okay I just realised that you probably have the 16 key version whereas mine is the 20 key version
that's it, I've got the 16 key keypad. I really miss teh Ok/close button, caus I have to grip off my phone for going to the upper right corner of the screen and come back to the keypad....
AE button, doesn't work for this button, neither Vito button...
Anyone an other solution
juju66 said:
that's it, I've got the 16 key keypad. I really miss teh Ok/close button, caus I have to grip off my phone for going to the upper right corner of the screen and come back to the keypad....
AE button, doesn't work for this button, neither Vito button...
Anyone an other solution
Click to expand...
Click to collapse
Why doesn't AE Button Plus work?
I use it for OK/Close and it works perfectly well
So I must not have using it the good way.
But wich button are you talking about, cause with AE button, it only "see" the three external button (wich are on the side). I know that you can assign every button with AEbutton, but when I assign the internet key for ok/close, it close the app the first time I use it and then the key come back to its previous function (internet explorer). Someone a reg trick?
I have the 16 key version too and want the same, an ok button on the keyboard. button utilities only recognize the hardware buttons and not the keyboard buttons so there is no way to map these. hopefully someone will update their utility to include the keyboard buttons.
cheers,
cojones
"happy" to see that I'm not the only one who don't suceed by trying to change the function of the internet explorer button on a 16 keypad of a dual for using it with the ok/close button...
I found the camera button akwardly placed (kept launching the damn thing by accident) and dont use the camera much - so I remapped the cam button to OK/Close and have found this does the job for me. Not really a solution I know, but it wokrs for me.
Yes AE Button is great, but while you can map any key like Mail or IE, it will still launch the old app, we'd have to find a way to not launch the old app, in the registry possibly.
GpsPasSion said:
Yes AE Button is great, but while you can map any key like Mail or IE, it will still launch the old app, we'd have to find a way to not launch the old app, in the registry possibly.
Click to expand...
Click to collapse
I have found the same. Has anyone managed to map IE button succesfully? Also there is a pause/delay when using buttons handled by AE Button, has anyone else noticed this?
any updates!? i think it can be done in the registry though i don't know how. hope that someone can crack this.
Mapping IE button to Opera solution
cojones said:
I have found the same. Has anyone managed to map IE button succesfully? Also there is a pause/delay when using buttons handled by AE Button, has anyone else noticed this?
Click to expand...
Click to collapse
I have found a rudimentary solution. Add the IE key using AE Button Plus and run the following Mortscript (I am still a novice scripter) to close IE when it opens automatically and then run Opera Mini.
WaitFor("Internet Explorer",5)
Close("Internet Explorer")
Run("\Windows\jbed.exe", "-run s0_")
It works for me. If anyone has any suggestions on improving it, please let me know.
anythig new about this, pls?
thx
balviforever
Did anyone has a solution for this? Have been searching to change Ok/Enter and IE buttons. AEBPlus doesnt really work perfectly and eat into RAM..
Can we change registry? lnk? read somewhere about long_press_xxxx.ink but dont find it in our Nike.
Anybody found a solution for this? I've tried everything but couldn't map the IE button on my 16-key Nike to OK/Close.
I never use the camera button on my streak so I want to change it so it would be useful to me (maybe locking auto rotate or assigning a task killer program to it for instant memory). Any have any ideas on how to do this and/or do you want to change the action of your camera button?
You can use buttonremapper to reassign the camera key (but it will no longer be a camera key, even if you are using the camera app or something like vignette). You need root for this- I have it as media pause/play
http://forum.xda-developers.com/showthread.php?t=850464
you can use 2 apps to make use of both the keys
1. Button remapper
2. then launch key
I use 'tasker' , it have camera button clicked event .
zoftdev said:
I use 'tasker' , it have camera button clicked event .
Click to expand...
Click to collapse
wow dint know that .
Thanks
EDIT : can u post the mod that you did
I'm not sure if someone has posted this already or what not, but basically I wanted to know if it would be possible to remap the dedicated camera button for another function. I ask because, i prefer using the onscreen camera shutter to take pictures and i'm sure other people do as well. Just a though for anyone with the ability to make it happen. I posted it here because i figured that, even though its a question, it's application related.
well personally, i would like to see an option to keep the camera button for the camera function but just make the button wake the phone as well.
polo79 said:
well personally, i would like to see an option to keep the camera button for the camera function but just make the button wake the phone as well.
Click to expand...
Click to collapse
Or that. An app like launch key that let's you select it would be cool.
You can remap the camera button to do other things, but your choices are limited afaik. I have my camera button remapped so that the half press takes a picture, and a full press acts as a power button. The power function allows it to turn the screen on or off, and I still have camera functionality from it.
I am unable to keep the original camera functions and have it wake the phone, it just wont allow it. It's been that way as long as I can remember trying, starting with the Hero on 1.5
To remap the camera hard key, or any other hard key for that matter, you have to edit the shooter-keypad.kl file located in /system/usr/keylayout
You can go in and edit it with Root Explorer pretty easy, reboot when finished for changes to take effect. I will look real quick and see what all function are available for us to use with this, but I know that I cannot make it launch an app. There was some extensive work done on this in the Hero dev forum a while back, but I think it died off when it was still a WIP for exp devs only. Maybe someone with some real knowledge of this can chime in here.
This is what my shooter-keypad.kl looks like:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# LCM 2D/3D switch
key 193 FUNC_2
key 194 FUNC_1
# CAMERA
key 211 CAMERA
key 212 POWER WAKE_DROPPED
And this is stock:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# LCM 2D/3D switch
key 193 FUNC_2
key 194 FUNC_1
# CAMERA
key 211 FOCUS
key 212 CAMERA
So, I played around a bit more, here are the functions that I know of that can be set to the camera hard key, either half press or full press. I noted on some that I tested what they are capable of.
Just so it's clear assigning WAKE_DROPPED to a function asks it to wake the phone if possible. WAKE asks it to complete it's task w/o waking the phone, and if there's nothing there, the function will not be enabled unless the phone is awake and unlocked. Also, key 211 is half press and key 212 is full press of the camera hard key.
Best thing I found that some people may want to use, FOCUS can wake the phone. So you can give FOCUS the WAKE_DROPPED ability, and it will turn the screen on. Down side is that it is so easy to press, if you carry ur phone in ur pocket like I do, this could be a battery killer. But, this does retain all normal button functionality and allows it to wake the phone.
Something else interesting, you can set half press to DPAD_RIGHT and full press to DPAD_LEFT. This lets you use the camera button to scroll left and right while typing or while in the browser, which can be very handy on some web pages with small text links. Or for people with fat fingers.
If anyone wants to do this, but has some trouble with it, post up and I can attach a modified keypad file for you to use.
Code:
POWER (Can wake phone, does not function as POWER once phone if off)
VOLUME_DOWN (Cannot wake phone)
VOLUMN_UP (Cannot wake phone)
HOME (Can wake phone)
MENU
BACK
SEARCH
ENDCALL
FUNC_2 (2D ON)
FUNC_1 (3D ON)
FOCUS (Can wake phone)
CAMERA (Cannot wake phone)
GRAVE (Can wake phone, and launches Search)
DPAD_CENTER
DPAD_UP
DPAD_DOWN
DPAD_LEFT
DPAD_RIGHT
ENDCALL (Can wake phone)
MUTE
CALL (Can wake phone)
MEDIA_NEXT (Cannot wake phone)
MEDIA_PLAY_PAUSE (Cannot wake phone)
MEDIA_PREVIOUS (Cannot wake phone)
MEDIA_REWIND (Cannot wake phone)
MEDIA_FAST_FORWARD (Cannot wake phone)
VOLUME_UP (Cannot wake phone)
VOLUME_DOWN (Cannot wake phone)
this app does it as well as other options .. i use it !
iTouch24 said:
this app does it as well as other options .. i use it !
Click to expand...
Click to collapse
U sure it works with the EVO 3D coz the developer in his description says the app doesn't work with HTC sense UI.
iTouch24 said:
this app does it as well as other options .. i use it !
Click to expand...
Click to collapse
Mini rant on...
Like Pr20 suggested, this app does not work on the camera button with HTC Sense. Why would you suggest an app without having used it yourself, or why are you in a forum for a phone you don't have. I figure it's gotta be one of those, otherwise you would know that that app doesn't work with HTC. Never has since it came out, it's in the market description even.
... rant off
Anyway, I've spent some time with the focus function having waking abilities, and it's pretty nice. The camera functions like normal, and a half press will wake the phone. But, there are some oddities that actually make it a little nicer for practical use. If your screen is turned off, and then the camera button is pressed within 20 seconds, the screen will come back on. If the screen is off for more then 20 seconds, the camera button has to be pressed twice in quick succession in order to wake the phone, sometimes 3 times. I'm not sure what causes this, but it's very nice, as it prevents a lot of accidental pockets wakes/dials.
UMMM ... i have the application and it does work with launching applications with camera button ...
regardless what it says ...
it probably has issues with some htc sense ui phones but i got the evo 3d and i have the market launch with camera button and quickdial launch with selecting and holding down search button
buy it and see for yourself ... u can return in 15 minutes ... that is more then enough time to see if it works ... and i am using it and it works fine ...
HTC SENSE UI:
--------------------
Launching from the Camera button may not work for users with the HTC Sense UI. Unfortunately HTC is unwilling to work with me to resolve the issue.
maybe because my phone is rooted ???
next time u want to rant be certain and dont assume ... i said in my post that i USE IT ... and i know i posted in the HTC EVO 3d, the current phone that i have
dam u try and help people .. and look ....
iTouch24 said:
UMMM ... i have the application and it does work with launching applications with camera button ...
regardless what it says ...
it probably has issues with some htc sense ui phones but i got the evo 3d and i have the market launch with camera button and quickdial launch with selecting and holding down search button
buy it and see for yourself ... u can return in 15 minutes ... that is more then enough time to see if it works ... and i am using it and it works fine ...
HTC SENSE UI:
--------------------
Launching from the Camera button may not work for users with the HTC Sense UI. Unfortunately HTC is unwilling to work with me to resolve the issue.
maybe because my phone is rooted ???
next time u want to rant be certain and dont assume ... i said in my post that i USE IT ... and i know i posted in the HTC EVO 3d, the current phone that i have
dam u try and help people .. and look ....
Click to expand...
Click to collapse
I have bought it, and I have used it before, and it doesn't work with the camera button on any ROM I have used. I'm hesitant to believe you that it works. That App has been around a while and I have used it before with other phones. I wish it did work, and but it certainly doesn't on my phone.
So, I don't know if ur just full of bs, or somehow ur phone runs different then the two I have access to, and but either way, I'm not going to worry about it.
Sent from my 3D EVOlution
I don't even have my Amaze yet, but one of the things I know I'm interested in is remapping the dedicated video button. I know I'll probably love the dedicated camera button, but I doubt I'll use the video button- mapping the button to either an app to it or a more useful function would be nice.
That said, has anyone decided to change the button functions and if so what did you use? What function did you give it?
I found a thread here that sounds like it could work except it makes a big deal out of needing "for full rooted devices. (NAND unlocked. Full, permanent write access to the system dir is needed)" and the functions it can provide don't seem all that helpful..
I did a fair amount of searching and couldn't find a better app, I'm not sure if the root the amaze has would be considered "full root", or if anyone here has really played with this.
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
jo093142 said:
check out Tasker from the market. It's basically a simple programming environment.
Think of it as writing a IF-THEN statements..
IF this THEN that....
IF i press the X button THEN open program y
If I press the Z button THEN send my girlfriend a text message with body of 'i just clicked my record button and it sent you a text message'
IF its 4o'clock on tuesday and i clicked the camera button then open angry birds
etc
etc
etc
Click to expand...
Click to collapse
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Silentbtdeadly said:
Haha, you know, that really does seem like the simplest answer. I tried tasker but was a little frustrated that you had to manually follow steps to re-create the same function someone else has gotten, and there was nothing I wanted my phone to do I felt like was worth that kind of time investment.. but simple tasks like this it totally makes sense!(And just curious, did I miss something, and there was a way to copy someone's script/code into tasker rather than input it manually?)
Thanks for the idea, I'm definitely going to give it a try!
Edit: And I just noticed that you only have two posts, welcome to XDA! If by your second post you've already helped a semi-veteran, you're definitely going to be a great addition to the community
Click to expand...
Click to collapse
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
mikeschevelle said:
been looking for the same thing, however I could find a camcorder button in Tasker, only the camera button.
bummer
Click to expand...
Click to collapse
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Silentbtdeadly said:
I don't have the phone yet or I would already be playing with this, but I imagine you could remap the button to a key that tasker does support.
Of course back up the original file, then use adb(or even root explorer for such a small text edit) to pull/push adb pull /system/usr/keylayout/ruby-keypad.kl
You should see:
Code:
key 116 POWER WAKE_DROPPED
key 114 VOLUME_DOWN WAKE
key 115 VOLUME_UP WAKE
key 102 HOME
key 139 MENU
key 158 BACK
key 217 SEARCH
key 107 ENDCALL WAKE_DROPPED
# CAMCORDER
key 248 [B]CAMCORDER[/B] WAKE
# CAMERA
key 211 FOCUS
key 212 CAMERA WAKE
Change just the bolded part above that says CAMCORDER to something our phone doesn't have that tasker recognizes(I don't know what options it has, something like "DPAD_CENTER" might work)
At least that is the first thing I was going to try.
Click to expand...
Click to collapse
.......appreciate it......over my head though
Hi there. The topic says it all. Does there a way exist for me to use my menu button (the physical button) to pick up a call? I looked around in the settings, (I'm on ICS Final Mod, kevinlekiller's) couldn't find it.
Tried to look for it, but turned up empty handed. So, does it exist?
Nope it doesn't. Never heard of such a thing.
You can edit /system/usr/keylayout/sec_key.kl .
ketut.kumajaya said:
You can edit /system/usr/keylayout/sec_key.kl .
Click to expand...
Click to collapse
sec_key.kl is not present. The following files are present
Code:
AVRCP.kl
qwerty.kl
sec_touchscreen.kl
I looked around but it seems to me that remapping would change the keys behavior for the entire time, but the key mapping should change only when there is an incoming call.
Okay so there is no key state as such for picking up a call. The nearest key state being ENDCALL (ironically).
Code:
HOME #Launches "Home"
MENU #Launches "Menu"
BACK #Takes you back to the last activity
SEARCH #Launches "Universal Search"
CALL #Launches the "Phone" activity and corresponding .apk or initiates a call
ENDCALL #Ends a call
CAMERA #Launches "Camera" activity and corresponding .apk
FOCUS #Initiates Auto-Focus while using the Camera
VOLUME_UP #Self explanatory
VOLUME_DOWN #^
The above is from the here
In the above link, Decad3nce puts forward the idea of custom app launching inspired by BuglessPete's How to make script run by using hardware keys
After reading both, I think might be a way of enabling the menu key/home key to pick up a call.