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
Hi, just wondering how you would set another Camera app to start when pressing the camera button, at the moment the Default camera app opens.
Thanks!
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
Is there an app for rooted phones to re assign a button.. For example the camera app, i would like to use the power button or volume button to take the picture.
Any help would be great.. Thanks
I'd like this too wildfire has no Camera button :/
Sent from my HTC Wildfire using XDA App
monkey28rb said:
Is there an app for rooted phones to re assign a button.. For example the camera app, i would like to use the power button or volume button to take the picture.
Any help would be great.. Thanks
Click to expand...
Click to collapse
With CM7 you can set the soft buttons to do other functions. For example you can set the search button to a different app or search app. You can set up the camera to use either volume UP, volume DOWN, or Power button to take pics. If you use the power.button to take pics you can then set up the volume UP/DOWN to zoom in/out. I have asked about this in one of the stock roms but never got an answer.
Sent From My KICKASS CM7 AT&T SGS2
Does anyone have an answer for the stock rom rooted?
I believe they are currently tinkering with the camera app to enable this functionality.
Unless I'm mistaken, what I did to the camera there is supposed to make it so the search button opens the camera and takes the pictures. Well, it does open the camera, but it doesn't take the pics. Am I wrong about it making it so it also takes pics? And if that's not the right way to do it, does anyone know how?
A BEAST NEVER SLEEPS
jakereeves31 said:
Unless I'm mistaken, what I did to the camera there is supposed to make it so the search button opens the camera and takes the pictures. Well, it does open the camera, but it doesn't take the pics. Am I wrong about it making it so it also takes pics? And if that's not the right way to do it, does anyone know how?
A BEAST NEVER SLEEPS
Click to expand...
Click to collapse
When you make a button open the camera thats using the long press shortcut setting, so you for example you hold the search key for 2 sec and it opens the camera. And as far as the button used for taking the picture itself, that is a setting in the actual camera app that you can set in some roms. I know with CM7 you can set it to have the search key, volume key, or power button snap the picture.
Kev13131 said:
When you make a button open the camera thats using the long press shortcut setting, so you for example you hold the search key for 2 sec and it opens the camera. And as far as the button used for taking the picture itself, that is a setting in the actual camera app that you can set in some roms. I know with CM7 you can set it to have the search key, volume key, or power button snap the picture.
Click to expand...
Click to collapse
Wow, really? I did not know about that setting. Thanks!
THE BEAST
camera button
i miss the camera button on my Droid X