Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,870 Members 49,732 Now Online
XDA Developers Android and Mobile Development Forum

(Q) [Solved :)] Search button as Camera button

Tip us?
 
motcher41
Old
(Last edited by motcher41; 21st December 2011 at 07:27 PM.)
#1  
motcher41's Avatar
Senior Member - OP
Thanks Meter 1275
Posts: 3,407
Join Date: Jul 2011
Location: Brainerd, Minnesota

 
DONATE TO ME
Default (Q) [Solved :)] Search button as Camera button

Anyone know if it is possible to make it so the search button takes a pic when in camera. I wish the dx2 had the dx camera button

Sent from my DROID X2 using xda premium
Check out the friendliest community on Google+
Droid Friends Community
Everyone and virtually everything welcome here!
Visit http://www.elementalxdesigns.com/ for a very friendly android community.
 
IAreKyleW00t
Old
#2  
IAreKyleW00t's Avatar
Senior Member
Thanks Meter 114
Posts: 316
Join Date: Dec 2011
Location: Ohio
Unfortunately, I've tried to find a working way to get that done but I can't find a way to get it. There are ways to change the layout of the buttons, but for some reason I couldn't get it working. Ill keep looking and let you know what I find, lol because I want it too!

Sent from my DROID X2 using XDA App
HTC One GPE (M8 S-OFF)
ROM: Paranoid Android | Kernel: Stock | Recovery: TWRP 2.7.1.0
 
robocuff
Old
#3  
Senior Member
Thanks Meter 81
Posts: 269
Join Date: Jul 2011
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.

Sent from my DROID X2 using xda premium
The Following 12 Users Say Thank You to robocuff For This Useful Post: [ Click to Expand ]
 
IAreKyleW00t
Old
#4  
IAreKyleW00t's Avatar
Senior Member
Thanks Meter 114
Posts: 316
Join Date: Dec 2011
Location: Ohio
Quote:
Originally Posted by robocuff View Post
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.

Sent from my DROID X2 using xda premium
Ah, I see. I tried just adding CAMERA to that line. I was trying to get it to still work as a 'search' when your not using the camera - but who uses that anyways? Nice job.
HTC One GPE (M8 S-OFF)
ROM: Paranoid Android | Kernel: Stock | Recovery: TWRP 2.7.1.0
 
motcher41
Old
#5  
motcher41's Avatar
Senior Member - OP
Thanks Meter 1275
Posts: 3,407
Join Date: Jul 2011
Location: Brainerd, Minnesota

 
DONATE TO ME
Quote:
Originally Posted by IAreKyleW00t View Post
Ah, I see. I tried just adding CAMERA to that line. I was trying to get it to still work as a 'search' when your not using the camera - but who uses that anyways? Nice job.
So it worked with no side effects? Id probably like no search key outside of the camera it annoys me

Sent from my DROID X2 using xda premium
Check out the friendliest community on Google+
Droid Friends Community
Everyone and virtually everything welcome here!
Visit http://www.elementalxdesigns.com/ for a very friendly android community.
 
pacman377
Old
#6  
Senior Member
Thanks Meter 13
Posts: 126
Join Date: Oct 2011
Location: Down South were we drink beer not water and southern comfort not pepsi.
Quote:
Originally Posted by robocuff View Post
I have mine like that right now. /system/usr/keylayout. Open the tegra-kbc.kl file in a text editor and find the line that says key 217 SEARCH WAKE_DROPPED and comment it out by putting a # in front of it. Then just add a line that says key 217 CAMERA . Reboot your phone and you should have it.

Sent from my DROID X2 using xda premium
Thanks man. Much rather have the camera over the search anyway.
 
robocuff
Old
#7  
Senior Member
Thanks Meter 81
Posts: 269
Join Date: Jul 2011
I know what you mean. I never use that search button anyway. It's one of the first things I do after flashing a new rom. That's one thing to be aware of. Flash a new rom and you have to do it again.

Sent from my DROID X2 using xda premium
 
motcher41
Old
#8  
motcher41's Avatar
Senior Member - OP
Thanks Meter 1275
Posts: 3,407
Join Date: Jul 2011
Location: Brainerd, Minnesota

 
DONATE TO ME
Quote:
Originally Posted by robocuff View Post
I know what you mean. I never use that search button anyway. It's one of the first things I do after flashing a new rom. That's one thing to be aware of. Flash a new rom and you have to do it again.

Sent from my DROID X2 using xda premium
That's ok ill definitely do it tomorrow

Sent from my DROID X2 using xda premium
Check out the friendliest community on Google+
Droid Friends Community
Everyone and virtually everything welcome here!
Visit http://www.elementalxdesigns.com/ for a very friendly android community.
 
jsgraphicart
Old
#9  
jsgraphicart's Avatar
Senior Member
Thanks Meter 1378
Posts: 4,760
Join Date: Nov 2011
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
 
IAreKyleW00t
Old
#10  
IAreKyleW00t's Avatar
Senior Member
Thanks Meter 114
Posts: 316
Join Date: Dec 2011
Location: Ohio
Quote:
Originally Posted by jsgraphicart View Post
In the same file, is it possible to make the volume buttons wake the phone? I see it shows wake for the home button. And I dont know what wake_dropped means for the menu and back buttons.
Yes, it's possible. WAKE means that if that button/key is pressed while the phone is asleep (screen is off), it will wake the phone up and return it to the app/lock screen.
WAKE_DROPPED means that if that button/key is pressed while the phone is asleep (screen is off), it will 'wake' the phone, but it will NOT return it to the application/lock screen.

Basically, WAKE = unlock phone, WAKE_DROPPED = Doesn't unlock phone.
HTC One GPE (M8 S-OFF)
ROM: Paranoid Android | Kernel: Stock | Recovery: TWRP 2.7.1.0

The Following 3 Users Say Thank You to IAreKyleW00t For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes