Buttons and app control - Epic 4G Android Development

Is there a way to change the buttons and what apps they control?
Example camera short press for voingo voice search, long press for camera.
Sent from my SPH-D700 using XDA App

I don't know about the camera button, but you can setup keyboard shortcuts.
Settings > Applications > Quick launch. I've found this to be really useful.

Related

[Q] Disable Menu Button?

Is there a mod that would disable the menu button on the phone and add the menu button inside the apps instead?
No. There are mods to enable software buttons. Each app is created to utilize hardware software menu buttons. In order for the app to show a menu button the app would need to create the.
Sent from my Nexus S 4G using xda premium
If you want the software menu button to appear on-screen where would it go?
ICS solves this problem by having a flexible navigation bar where a menu button would appear if the application called for it. So if you want a software menu button, there are mods to enable a navigation bar.

[Q] Software Power Menu

Hi,
I'm looking for an app which can open the DEFAULT power menu.
There are many apps in the Play Store which CREATE a power menu, but I want one which can just open it.
I use power menu a lot and I'm sure most of us use it very much. I just want something which can prolong the life of the power button.
I'm currently using Screen Off and Lock from the Play Store which can lock the phone using an on-screen icon. I want something like that for the power menu too.
Any help would be appreciated.
Thanks in advance.
If you're rooted, you could try rom toolbox from jrummy, it has a complete rebooter section and a widget accessing to that section
Sent from my Nexus S using xda app-developers app
I know there are apps which can display their own power menu.
But what I'm interested in is to use the default power menu...
Have a look at Screen off and lock in the Play store to know what I mean...
Sent from my Nexus S using xda premium
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
eksasol said:
I assume you have a non-working power button. There are 2 ways you can do this:
1. Enable the Navigation bar feature in AOKP or SlimBean rom. Map the Power function to one of the button, but map it to the primary function of the button, not the secondary.
2. You can remap your capacitive buttons. Open the file /system/use/keylayout/cypress-touchkey.kl with the text editor of your root explorer, or copy it to your sdcard to edit it. Change KEY 217 ASSIST (or SEARCH), to POWER. Save the file and reboot. Also make sure you fix the permission of the file when you put it back if needed.
For both of these, press and hold that button to bring up the menu, one press = screen off.
Click to expand...
Click to collapse
My power button is working fine.
I'm just interested in getting the functionality of an on-screen button such displays the default power menu...
Thanks for your tutorial though.
Might help me some day...
Sent from my Nexus S using xda premium
Notification toggle from the play store has a power menu toggle
Sent from my Nexus S 4G using xda app-developers app

[Q] Mapping Volume button to camera

how can we map the volume button so as to launch camera on long pressing the volume button??
I don't think that's possible, you can remap the camera to another button tho.
If you are on gsnap by neko or cm7 you can go to setting > cyanogenmod settings > input > search key behavior > check long press search app > then press custom application > application > choose camera app in that list > voila
Now you can long press search key and camera app will launch
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
harshbg said:
Any other button other than search button
Sent from my LG-P500 using xda app-developers app
Click to expand...
Click to collapse
Yes you can even menu button and home but only volume buttons you cant. The method is the same like search button for menu and home button remaping
Sent from my LG-P690 using Tapatalk 2
M using cm9..not able to find cm settings
Sent from my LG-P500 using xda app-developers app
search key as camera button
it can be possible to remap search key as camera key.
- If you are using stock 2.3.3 firmware, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- if you are using CM7, go to /system/usr/keylayout/ and copy qwerty.kl to a pc
- if you are using ICS, go to /system/usr/keylayout/ and copy thunder_keypad.kl to a pc
- (i never tried this on jb but it should be just like on ICS)
then, open the file *.kl with an text editor (i recomend notepad++). every line starts witn this synthesis:
key [nº of the key] [function] [restriction]
/*the restriction says if a button can work with screen locked or not. WAKE alows a key to work even if the phone is locked, WAKE_DROPPED restrict a key to work only if the phone is unlocked */
look for the line that has the key Nº 217. it will looks like this:
key 217 SEARCH WAKE_DROPPED
change the SEARCH word to CAMERA
then, save the file and push it to /system/usr/keylayout/ overwritting the existing one
WARNING: DO an nandroid backup before do this...
PD: in stock ROMs, the stock camera will not recognize a camera button for take a pictute or record video, a third party camera app will do it.
Button Remapper! On XDA somewhere. Sorry
Sent from my LG-VM670 using Tapatalk 2

Home Button as Camera Shutter Button?

We all know you can use the power button to take a picture in most custom roms, but with the s3 being such a large phone it's sometimes hard to hit the power button and tap to focus using just one hand. So how would one go about mapping the physical home button as the camera shutter button? Thanks for your input.
Anyone?
You can enable the onscreen buttons then remap the home key to start the camera and act as the shutter button when in the app. Also some camera apps allow you to select any pod the physical buttons as a shutter key.
Sent from my SCH-I535 using Tapatalk 2
mentose457 said:
You can enable the onscreen buttons then remap the home key to start the camera and act as the shutter button when in the app. Also some camera apps allow you to select any pod the physical buttons as a shutter key.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Can u tell me how to do the same for pocket duos / lite
Sent from my GT-S5302 using xda app-developers app
mentose457 said:
You can enable the onscreen buttons then remap the home key to start the camera and act as the shutter button when in the app. Also some camera apps allow you to select any pod the physical buttons as a shutter key.
Sent from my SCH-I535 using Tapatalk 2
Click to expand...
Click to collapse
Thanks for your reply but I'm looking for a way to map the physical home button as the camera shutter button. Using an on screen button would be the same as just hitting the camera shutter button on the camera app.
I'm in no way a developer but I feel like it would be as simple as changing the code in the camera apk to make the physical home button take a picture rather than the power button. Can anyone confirm this?
Bump
I knowfor HTC phone they make MOD for vol up for vol down to act as shutter button, I wonder if that would be able to be ported over number one, and if so if able to change the vol up/vol down to home button for shutter.
some links
http://forums.androidcentral.com/ht...r-button-camera-root-required-n00b-proof.html
this method isn't the best though, it pretty much renders the volume button worthless IIRC even when not using camera app, i do remember i coded it into the camera app one time for HTC, maybe i can dig that up

Recent button option with hardware key

Is there recent option for the hardware button. Couldn't find it. Trying to multitask
Sent from my A0001 using XDA Free mobile app
By default, you can long press home.
You can go into Settings > Buttons and remap the buttons. I personally remapped Menu to Recent apps.
zephiK said:
By default, you can long press home.
You can go into Settings > Buttons and remap the buttons. I personally remapped Menu to Recent apps.
Click to expand...
Click to collapse
Could I use one of the hardware button to long press to turn off the screen
Sent from my A0001 using XDA Free mobile app
toanau said:
Could I use one of the hardware button to long press to turn off the screen
Sent from my A0001 using XDA Free mobile app
Click to expand...
Click to collapse
Sure if you want to, its called screen off. Or just enable Status Bar Double Tap to Sleep.

Categories

Resources