webOS Nation Forums > Homebrew > webOS patches > Launch Camera when Held Sideways and Unlocked (Patch)
Member: MijoroJordan
at: 01:22 AM 01/02/2010
I wrote my first patch today: Launch Camera when Held Sideways and Unlocked.

In Short:
Your phone quickly switches to camera mode if you hold it sideways while unlocking.

Why:
This is how you hold a normal camera, and goes the extra mile of also capturing pictures using the volume key -- which is where your fingers expect the shutter button on a camera to be. Thanks to Capture Photo with Volume Button for that.

The patchfile is attached, so you can see what it's doing.

I'm still waiting for it to be accepted and packed into PreWare. I'll update when it's available to install as a homebrew patch.

If you like this patch, let me know so I know I'm on the right track. If you don't, I'd still like to know why it doesn't seem practical.

Regards,
~Jordan
Attached: launchCamera.patch (1.6 KB) 
Reply
Member: 063_xobx
at: 01:29 AM 01/02/2010
I like idea its just that sometimes when im browsing the internet ill leave it in landscape and then leave it on my desk and then when i come back i assume that it would launch camera which would be kind of difficult is there a way to disable it while im browsing but otherwise great work and good idea
Reply
Member: pman_lt
at: 02:10 AM 01/21/2010
The patch is great, but need's some improvments, since it lounchers camera sometimes when i pick up the phone pfom the table and unlock it.

How do you uninstall the patch?
Reply
Member: mthornbrough
at: 01:20 PM 01/21/2010
I agree with pman, the patch needs improvement where is only works when you phone is completely in landscape position. It would also be nice it you could toggle it on or off. How do you uninstall the patch?
Reply
Member: alex.dobeck
at: 01:25 PM 01/21/2010
I'm not sure if it is the patch's fault, I'm sure the phone's doing plenty of battery-saving things with the motion sensor when you take it out of sleep, but I eventually did uninstall it because it opened the camera about 1 in 3 times I unlocked the phone in landscape.
Reply
Member: mthornbrough
at: 04:04 PM 01/21/2010
Alex,
I had same issue, how do you uninstall it?
Reply
Member: pjjohn73
at: 12:57 AM 01/22/2010
The Pre takes 3-5 minutes to unlock after installing the patch. And seems to have some glitches even after loading. Nice idea, but had to remove it.
Reply
Member: yobobie
at: 07:43 AM 02/27/2010
IS it possible to only allow the slider mechanism to unlock the camera, rather than a landscape unlock, which happens frequently by accident? I I could launch my camera by holding my phone in landscape, and sliding out the keyboard that would be perfect. Just the unlock alone causes too many accidental camera launches.
Reply
Member: yobobie
at: 04:09 PM 03/05/2010
Anyone?
Reply
Member: bluntyeyedfool
at: 05:42 PM 03/11/2010
I tried this - very nice idea dude - but the camera was constantly opening and although I'd catch it many times before it opened, it got too annoying. this is how I disabled it:

a) Get yourself to the linux command line (use webOS Quick Install).

b) Move (mv) the current 'cameraLaunch.js' (with the code for this tweak) out of the way:
mv /usr/palm/applications/com.palm.app.phone/app/extensions/cameraLaunch.js /usr/palm/applications/com.palm.app.phone/app/extensions/cameraLaunch.js.lcwhsau.old

c) then, for good measure, copy the original, which shud be there beside it (even though it's 0 bytes):
cp /usr/palm/applications/com.palm.app.phone/app/extensions/cameraLaunch.js.webosinternals.orig /usr/palm/applications/com.palm.app.phone/app/extensions/cameraLaunch.js

d) restart the handset.
Reply
Member: kkhanmd
at: 06:26 PM 05/11/2010
Good thinking but need a lot more work, works in 1 in 3 times. Not reliable.
Reply
Member: Goyena
at: 11:47 AM 05/17/2010
Great patch. I use it often. I would love if you could restrict what the patch considers as "horizontal" though. Thanks!!!
Reply
Member: BenSWoodruff
at: 02:30 AM 06/07/2011
There is a lot of buzz about iOS 5 right now, stealing functionality and whatnot. I'll just suggest a similar idea compared to the jailbreak tweak I was using on my iPhone 3GS before I bought my Pre 2. The idea works well with the current patch that allows me to use my volume keys to snap a photo within the camera app. So, I suggest making a patch that allows users to unlock the phone and take users directly into the camera app by holding one of the volume keys for an extended period of time, like two seconds or something. Currently, holding the volume key(s) when the phone is locked does nothing, so I don't see a conflict. I don't want to have to press the unlock button, then remember to hold my phone a certain way before sliding the little unlock ball. It is a great idea, your patch, but I don't think I would use it as is. Thanks for the work, and great job on your first patch! (I've never written one, so I can't really hold a candle to ya lol)
Reply
Member: idiotboxxer
at: 06:57 AM 06/07/2011
I like the idea of using the volume keys. What I think it may works well is using it together with the normal gesture unlock.
When holding the phone with the left hand, just unlock it as usual with the right hand while hold the volume keys with the left hand's thumb will bring you straight into the camera app.

Will it be possible?
Reply
Member: xs-sxs
at: 09:35 PM 06/08/2011
Could you make it launch the camera only if you swipe the unlock down in land scape mode? just a thought that would make it better for me.
Reply
Member: veerar
at: 05:53 AM 01/02/2012
I tried to update this patch for 2.2.4. I have failed. Any help will be appreciated. My useless version of the patch is below.
Attached: USELESS_pre3_cameraLaunch.patch (1.4 KB) 
Reply
Member: ShiftyAxel
at: 08:47 AM 01/02/2012
From the look of things, it looks like the patch is checking orientation constantly while the phone is unlocked. Would it not be better to check it while locked?
Reply
Member: carguy303
at: 07:36 AM 01/06/2012
doesn't even install via internalz. I'll quick install later today.
Reply
Member: ShiftyAxel
at: 12:57 PM 01/06/2012
The patch is broken in 2.2.4, using quick install won't make any difference. The patch will have to be rewritten before it'll install. And it's apparently quite buggy at the moment, it needs to be improved a bit to be practical.
Reply
Tagscamera

webOS Nation Forums > Homebrew > webOS patches > Launch Camera when Held Sideways and Unlocked (Patch)