[Q] Open camera with hardweare button - Galaxy S III Mini Q&A, Help & Troubleshooting

Is it possible to set hardware button (or combination of buttons) to lunch camera application? I would like to be able to take a picture without use of touch screen. I tried camera zoom FX in which you can set volume button for shutter. To lunch application I have used S-voice, but it is very unreliable and requires internet connection. So I’m looking for other ideas.

Try another apps and if not I think we need a new kernel with this feature
Sent from my GT-I8190 using Tapatalk 2

No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity

dariolob said:
No custom kernel needed
You could re-assign the S-Voice double home press through some framework editing. Of course you need some dev skill as it won't be easy!
I will post you some links asap!
EDIT: I'm quite sure that you can do this by editing android.policy.jar.
Decompile it using apktool and take a look at com\android\internal\policy\impl\PhoneWindowManager.smali, lines 3896 to 3922 define the double home press behaviour This is the best I can do, I hope you'll find it useful ^^
The easy way: you can always try to search on the play store and assign a custom gesture/key the camera launch activity
Click to expand...
Click to collapse
Thank you for your answer. I'm not familiar with apktool, so I did some more search on the play store and I found an application Home2 Shortcut. With this app you can reassign double click of menu key to start any application. Now with double click of menu button I lunch the Camera zoom FX and with volume button I take a picture. Now I'm able to take a picture with my winter biking gloves on.

Related

Reassigning buttons?

I'm sorry if the answer is around somewhere, I couldn't find it in search.
Are there any ROMs or Apps that will let me reassign what the physical G1 buttons do? I know some let you customise how the END button behaves, but how about full customisation?
For example make the phone button go to my contacts not my missed calls, or even to another phone app.
Or make the camera button go automatically to barcode scanner (I don't find it worth taking pictures with the G1).
Sorry again if this has been posted, or I've posted in the wrong place.
Oh, and on a side note, are Hero ROMs the only ones with multitouch photo viewing? I've gone back to CM for less sluggishness, and I really miss it. I had copied a load of webcomics to my phone and now reading them is such a chore...
Phone key: smartdialer (market)
Home key: home. Alternatives
End key:spare parts can change the behavior
For the other keys:you can edit the trout-qwerty.kl/other files in /system/usr/keylayout & /system/usr/keychars , but you can only switch keys,for example make the camera button a search key.
Would it not be possible to rename a barcode scanner app to the camera app and make it load it that way?
No, because the startup option is defined in the source code of an app.
The buttons are linked with android.intent.activitys
Curses! Would've been so sweet.
Maybe one day...

Custom Function on Search key

is it possible to give the search hardware key another function?
for example an app?
or i would love to have the on/off screen rotation function on it.
there is an app in the market that allows this but it is limited. it can only program one app to it, but you can make it any app you want. I have it programmed to the screenshot app, so i can take screenshots anytime i want without having to go back to homescreen.
the app is called "Button Shortcut". Depending on the app you want, there may be specific search shortcut apps in the market. I have one called "Call Button" and this programs the search key to also bring up the dialer to make calls since our nexus does not have a physical button for dial.
yeah that app is cool, but it only replaces the long press function of the search key.
is it also possible to replace the normal click?
souljah2k said:
yeah that app is cool, but it only replaces the long press function of the search key.
is it also possible to replace the normal click?
Click to expand...
Click to collapse
Nope because the normal search screen can be handled by the active app.
I think in Cyanogenmod 7 you finally can do that.
l_Estat said:
I think in Cyanogenmod 7 you finally can do that.
Click to expand...
Click to collapse
in cm7, Settings > CyanogenMod Settings > Input.
You can set long press to custom application for the home and menu key
In addition, for the "search key" you can set custom app for both short & long key press.
For long press on Search button you can also use " LaunchKey " ... you can set any App you want or ... create a Menu of your favorite apps to lunch .
[email protected] said:
For long press on Search button you can also use " LaunchKey " ... you can set any App you want or ... create a Menu of your favorite apps to lunch .
Click to expand...
Click to collapse
i've tried this and it works. and if my memory is correct you can change long press and quick press to 2 different functions
Do yourself a favor and get Tasker. Binding the search button to pretty much anything you'd want is just one of about a billion things you can do with it. If you don't want to spend the money, you can try an app called AutomateIt. I haven't used that one as much as Tasker, but it has similar functionality.
Some of my Tasker tasks are:
Automatically turn on WiFi when I'm in my apartment
Turn off bluetooth when I disconnect my headset
Automatically turn on the GPS when I open Google Maps
Automatically start Pandora when I plug headphones in
You basically give it a trigger (app launching, button pressed, incoming call, etc) and a set of actions to perform when that trigger is hit.

The useless "Search" soft key.

Any apps to make it open something else?
Thanks.
there are plenty
quicksettings
quickdesk
handcent sms
are a few off the top of my head
i used to have a bunch more, but i have since uninstalled after trying nearly all the apps i want to try
(these will allow you to launch them by long press. i dont know if you can replace the short press)
Pretty sure short press is not easily changed. With froyo though longpress opens Google voice commands.
Sent from my SAMSUNG-SGH-I897 using XDA App
Nice.
Thank you.
id be interested in a kernel or rom that would allow this to be changed. long press on menu opens search so why a seperate key that can be usefull as something else? can any of those apps change the short press? ive only seen long press on search and on home.
I use visual task switcher and assigned the long press of the search key to bring up a list of currently running apps. Pretty handy.
I installed "screen lock" and assigned it to screen lock to take some stress off the power button.
I don't remember where, but I found a post somewhere on how to change it, short press on mine opens camera.
Button Shortcut in the market.
Sent from my Captivate.
Dani897 said:
id be interested in a kernel or rom that would allow this to be changed. long press on menu opens search so why a seperate key that can be usefull as something else? can any of those apps change the short press? ive only seen long press on search and on home.
Click to expand...
Click to collapse
AReynante said:
I don't remember where, but I found a post somewhere on how to change it, short press on mine opens camera.
Click to expand...
Click to collapse
wow, this is an old thread, for those interested dragon remaps the key as camera launch.
can be done in button remapper. also touch jestures can be mapped as keys in galay tuner.
for people who want to get custom and dont see the otions they want in button remapper, i think the key table is in /system/usr/keylayout/s3c-keypad.kl
this is good for fixing i9000 roms (partially) when no kernel is available for those who want to try samsung gingerbread
I like the long press for google voice search. Thanks for the idea.
If you end up flashing a ROM, CM7 has a way to change the search key in the settings menu
I took a look at the system/usr/keylayout/s3c-keypad.kl file but I'm having trouble figuring it out. Anyone know how to get more info on it? Would love to map QuickDesk to it
Dani897 said:
wow, this is an old thread, for those interested dragon remaps the key as camera launch.
can be done in button remapper. also touch jestures can be mapped as keys in galay tuner.
for people who want to get custom and dont see the otions they want in button remapper, i think the key table is in /system/usr/keylayout/s3c-keypad.kl
this is good for fixing i9000 roms (partially) when no kernel is available for those who want to try samsung gingerbread
Click to expand...
Click to collapse
OK.. I have the issue, seems quite random with the Search button. Am wondering if it is related to moisture from my palm (right-handed)... not sure. Will have to try the rice trick.
Have also taken a look at the remapping option, but don't seem to have write permissions to any of the files, much less, what values to place in the file(s).
Any assistance would be appreciated on teh edit option.
BTW: Captivate with CM7.1 (and a functional GPS after a number of patch/fixes applied)
cm7 has this option.

[MOD]Camera Shutter/Volume Rocker|Updated 3/2/12 (Mecha only)

Mecha
Camera Shutter/Volume Rocker Mod
(and Search softkey)
This is a low-level mod for now that effects the assignment globally!​
Ok guys, this is something I have been wanting to get around to for a while.
Making the volume rocker act as camera shutter button. (or search softkey)
For me, it has always been a pain to try and reach around the screen and tap just the right spot in the stock camera app to snap off a shot.
There is a setting in many of the included Tweak apps to make the volume rocker act as the camera shutter, but this has never worked on our device and has yet to be implemented on any Thunderbolt rom I have come across.
So, while I look further into making this work the way I would prefer, I am posting these low-level mods for now.
Meaning, I want to make the volume rocker function as normal while camera is not in use and only be the shutter button when camera is active. This is gonna take me a little bit longer to accomplish through the editing of the camera.apk smali files. I do have a decent start on it, but nothing I would post as of yet.
With all of that said, here is my simple mod for now.
****THIS WILL DISABLE THE VOLUME UP OR DOWN ROCKER FUNCTION,
DEPENDING ON WHICH MOD YOU FLASH!!
SO TO ADJUST THE VOLUME TAP THE VOLUME UP OR DOWN,
WHICHEVER ONE YOU DID NOT CHANGE, THEN JUST ADJUST THE VOLUME WITH THE ON SCREEN SLIDER BAR.
You may prefer the volume up mod. As most people are more in a hurry to adjust the volume down, then they are to turn it up.
If this mod doesn't suit you, due to the disabling of one option or another, I understand.
But there may be those who are willing to sacrifice up or down, or the search button to be able to have a dedicated button for snapping shots.
THIS ZIP WILL REPLACE THE VOLUME UP WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL REPLACE THE VOLUME DOWN WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL REPLACE THE SEARCH SOFTKEY WITH CAMERA
LONG PRESS TO START CAMERA APP, THEN TAP TO TAKE PICS OR START RECORDING VIDEO
THIS ZIP WILL RESTORE YOU BACK TO STOCK
IF YOU DECIDE YOU DON'T LIKE IT
INSTALL:
Just flash the zip for desired mod in Recovery and reboot.
User feedback is always welcome!!...............and maybe a Thanks if you decide to use it
Updated all .zip files
UPDATED ALL .zips and tested!
All should be working as intended and full flashable now, sorry for any confusion!​
I can't seem to download the mod
nowetdio said:
I can't seem to download the mod
Click to expand...
Click to collapse
The links were working just fine.
It appears as though the file host decided to go down right after.
All links updated to my Dropbox, since the DevHost went down.
Should all be good to go, once again!
Thank you for this!!!!
nowetdio said:
Thank you for this!!!!
Click to expand...
Click to collapse
You're most welcome.
Not sure why we didn't have this or something better sooner for the stock camera on our Thunderbolts..
I much prefer a dedicated button for it.
Glad you find it of use as well and thanks for leaving a response.

Double Tap Home Button To Open Camera

When the Samsung Galaxy S6 came out I really liked this feature of quickly launching the Camera app by just double tapping on the physical Home button. Some people are lucky and still using KitKat ROMs in which Xposed is available and this can be done, but its not good implemented on Lollipop 5.0.1 just yet( if I'm not mistaken) Well for those people looking for something similar(like myself) this is a pretty good and easy way to make it happen, the Camera wont launch as fast as the GS6 but something still better than nothing, I will leave some Step by Step procedure with some pictures for references,so lets get started,
NO ROOT REQUIRED
Download Home2 Shortcut from Google Play for free. https://play.google.com/store/apps/details?id=com.eikatou0.appspot.home2shortcut
1-Open up Home2 Shortcut and scroll down 'till you reach your first stop - "Step1". Here, you'll assign the Home key to the Camera app. So tap "Choose Application", choose "Camera" and hit "Ok".
2-Next, you'll adjust the duration, or how quickly you must tap the home button to complete the action. So scroll down to "Step 2", tap the "Normal" drop-down menu, and choose "Normal"
3-Scroll down to "Step 3", where you'll complete an important setting. Tap "Choose Home Application" and select the launcher you're currently using.
4-Scroll down to the final "Step 4" and tap Close. Android will prompt you to select an app to complete the action. In this screen, select "Home2 Shortcut", and then choose "Always".
5-Go ahead and try launching the Camera by double tapping the Home button. It should work.
THIS METHOD DOES NOT WORK WITH THE SCREEN OFF
yoniinfante said:
When the Samsung Galaxy S6 came out I really liked this feature of quickly launching the Camera app by just double tapping on the physical Home button. Some people are lucky and still using KitKat ROMs in which Xposed is available and this can be done, but its not good implemented on Lollipop 5.0.1 just yet( if I'm not mistaken) Well for those people looking for something similar(like myself) this is a pretty good and easy way to make it happen, the Camera wont launch as fast as the GS6 but something still better than nothing, I will leave some Step by Step procedure with some pictures for references,so lets get started,
NO ROOT REQUIRED
Download Home2 Shortcut from Google Play for free. https://play.google.com/store/apps/details?id=com.eikatou0.appspot.home2shortcut
1-Open up Home2 Shortcut and scroll down 'till you reach your first stop - "Step1". Here, you'll assign the Home key to the Camera app. So tap "Choose Application", choose "Camera" and hit "Ok".
2-Next, you'll adjust the duration, or how quickly you must tap the home button to complete the action. So scroll down to "Step 2", tap the "Normal" drop-down menu, and choose "Normal"
3-Scroll down to "Step 3", where you'll complete an important setting. Tap "Choose Home Application" and select the launcher you're currently using.
4-Scroll down to the final "Step 4" and tap Close. Android will prompt you to select an app to complete the action. In this screen, select "Home2 Shortcut", and then choose "Always".
5-Go ahead and try launching the Camera by double tapping the Home button. It should work.
THIS METHOD DOES NOT WORK WITH THE SCREEN OFF
Click to expand...
Click to collapse
I did this exactly first thing after I saw this feature. same app and everything
AndroidState said:
I did this exactly first thing after I saw this feature. same app and everything
Click to expand...
Click to collapse
Yeah it works very well...i posted cuz i see people interested in the same thing but no threads about it...cheers:fingers-crossed:
Thanks! I've installed it and it works very well. I'm not sure if I'm going to keep it though because I often go for a photo walk around the city where I'll take the phone out of my pocket, snap a photo and put it back in my pocket. This app doesn't really speed up the process of opening the camera.
sandeshnl said:
Thanks! I've installed it and it works very well. I'm not sure if I'm going to keep it though because I often go for a photo walk around the city where I'll take the phone out of my pocket, snap a photo and put it back in my pocket. This app doesn't really speed up the process of opening the camera.
Click to expand...
Click to collapse
You can go to Step 2 and choose another level instead of Normal, hope it works better, if helped please press the Thanks Button, ill appreciate, god bless, cheers:fingers-crossed::highfive:
Thanks for sharing the info but its not working when the screen is off or also after waking the screen but only works when unlocked, am I missing anything?
chowdarygm said:
Thanks for sharing the info but its not working when the screen is off or also after waking the screen but only works when unlocked, am I missing anything?
Click to expand...
Click to collapse
I stated on OP, THIS METHOD DOES NOT WORK WITH SCREEN OFF, but let see youre using any app or browsing and you need to snap a photo just double tap the home button, instead of going back home, opening the app drawer, and looking for the camera app, of course this isn't perfect, but it works really well, thanks for the comment, if helped please press the Thanks Button,appreciate, god bless, cheers:fingers-crossed::highfive:
yoniinfante said:
I stated on OP, THIS METHOD DOES NOT WORK WITH SCREEN OFF, but let see youre using any app or browsing and you need to snap a photo just double tap the home button, instead of going back home, opening the app drawer, and looking for the camera app, of course this isn't perfect, but it works really well, thanks for the comment, if helped please press the Thanks Button,appreciate, god bless, cheers:fingers-crossed::highfive:
Click to expand...
Click to collapse
My bad....was looking for this feature since I saw S6...so was excited when I saw your post and didnt read everything ...still good to try...thanks [emoji16]
chowdarygm said:
My bad....was looking for this feature since I saw S6...so was excited when I saw your post and didnt read everything ...still good to try...thanks [emoji16]
Click to expand...
Click to collapse
lol its ok mate, have a good one, god bless, cheers:fingers-crossed::highfive:
Thanks for the hint!
also If you have custom launcher like Nova it is possible to do the same thing by assigning it to launch camera upon hitting home button , so if you're browsing or playing game double tapping home button opens the camera.
Vichenec said:
Thanks for the hint!
also If you have custom launcher like Nova it is possible to do the same thing by assigning it to launch camera upon hitting home button , so if you're browsing or playing game double tapping home button opens the camera.
Click to expand...
Click to collapse
yes, that's correct, but what I don't like about Nova is that every time you press the home button even by mistake then the camera opens, also you have more choices with this app, thanks for the comment, if it helped please click the Thanks Button, god bless, cheers:fingers-crossed:
yoniinfante said:
yes, that's correct, but what I don't like about Nova is that every time you press the home button even by mistake then the camera opens, also you have more choices with this app, thanks for the comment, if it helped please click the Thanks Button, god bless, cheers:fingers-crossed:
Click to expand...
Click to collapse
Works perfectly fine for me, never happened by mistake.
I use Nova launcher. There is an option in 'Gestures' to do a task if you press twice the home buttom. Just choose to open the Camera app.
Sent from my SM-N910C using XDA Free mobile app
HDxDaniel said:
I use Nova launcher. There is an option in 'Gestures' to do a task if you press twice the home buttom. Just choose to open the Camera app.
Sent from my SM-N910C using XDA Free mobile app
Click to expand...
Click to collapse
how did you enable double tap home button to open camera? i can only see a single tap to open camera option..
Is there a method for root which doesn't require you to unlock your phone before opening the camera with double click of home button
kalinskym said:
Is there a method for root which doesn't require you to unlock your phone before opening the camera with double click of home button
Click to expand...
Click to collapse
Using Xposed, but you need to be running Kitkat Rom, cheers:fingers-crossed:
pratik_193 said:
how did you enable double tap home button to open camera? i can only see a single tap to open camera option..
Click to expand...
Click to collapse
Well it isn't double tap exactly, I meant that if you are using any app, like Whatsapp for example, and you want to open camera you have to press twice to open it, once for homescreen and other to open the camera.
If it doesn't work with screen off, then if you have nova launcher prime, it's better to add the camera app to the home button in button and gestures submenu
Inviato dal mio Note 4
pratik_193 said:
how did you enable double tap home button to open camera? i can only see a single tap to open camera option..
Click to expand...
Click to collapse
Exactly, there's no way to implement double tap everywhere, only a single tap on the homescreen, or a single tap everywhere but activating that would leave us without a home button
Chad_Petree said:
Exactly, there's no way to implement double tap everywhere, only a single tap on the homescreen, or a single tap everywhere but activating that would leave us without a home button
Click to expand...
Click to collapse
Thats what is this thread about this app impliment the double tap very well...and you still have a single tap home buttom...if you havent use it yet give it a try...cheers:fingers-crossed:

Categories

Resources