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

  Reply
Like Tree1Likes
  • 1 Post By MijoroJordan

 
LinkBack Thread Tools Display Modes
Old 01/02/2010, 12:22 AM   #1 (permalink)
Member
 
Join Date: Jul 2009
Posts: 10
Likes Received: 1
Thanks: 2
Thanked 3 Times in 1 Post
Default Launch Camera when Held Sideways and Unlocked (Patch)

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 Files
File Type: patch launchCamera.patch (1.6 KB, 46 views) Email Attachment
MijoroJordan is offline   Reply With Quote
Liked by Rnp likes this.
Thanked by cgibin, Rnp, veerar
Old 01/02/2010, 12:29 AM   #2 (permalink)
Member
 
063_xobx's Avatar
 
Join Date: Aug 2009
Location: plɹoʍ ǝɥʇ ɟo ǝpıs ɹǝɥʇo ǝɥʇ
Posts: 3,470
Likes Received: 0
Thanks: 215
Thanked 942 Times in 551 Posts
Default

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
063_xobx is offline   Reply With Quote
Old 01/21/2010, 01:10 AM   #3 (permalink)
Member
 
Join Date: Nov 2009
Location: Lithuania
Posts: 139
Likes Received: 0
Thanks: 8
Thanked 18 Times in 11 Posts
Default

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?
pman_lt is offline   Reply With Quote
Old 01/21/2010, 12:20 PM   #4 (permalink)
Member
 
Join Date: Jun 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
mthornbrough is offline   Reply With Quote
Old 01/21/2010, 12:25 PM   #5 (permalink)
Member
 
Join Date: Jul 2009
Posts: 1,599
Likes Received: 2
Thanks: 88
Thanked 274 Times in 210 Posts
Default

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.
alex.dobeck is offline   Reply With Quote
Old 01/21/2010, 03:04 PM   #6 (permalink)
Member
 
Join Date: Jun 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Alex,
I had same issue, how do you uninstall it?
mthornbrough is offline   Reply With Quote
Old 01/21/2010, 11:57 PM   #7 (permalink)
Member
 
Join Date: Mar 2008
Posts: 320
Likes Received: 0
Thanks: 34
Thanked 22 Times in 17 Posts
Default

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.
pjjohn73 is offline   Reply With Quote
Old 02/27/2010, 06:43 AM   #8 (permalink)
Member
 
Join Date: Jun 2009
Posts: 16
Likes Received: 0
Thanks: 4
Thanked 2 Times in 2 Posts
Default

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.
yobobie is offline   Reply With Quote
Old 03/05/2010, 03:09 PM   #9 (permalink)
Member
 
Join Date: Jun 2009
Posts: 16
Likes Received: 0
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Anyone?
yobobie is offline   Reply With Quote
Old 03/11/2010, 04:42 PM   #10 (permalink)
Member
 
Join Date: Feb 2010
Posts: 1
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
bluntyeyedfool is offline   Reply With Quote
Old 05/11/2010, 05:26 PM   #11 (permalink)
Member
 
kkhanmd's Avatar
 
Join Date: Jan 2008
Posts: 2,069
Likes Received: 81
Thanks: 280
Thanked 245 Times in 187 Posts
Default

Good thinking but need a lot more work, works in 1 in 3 times. Not reliable.
kkhanmd is offline   Reply With Quote
Old 05/17/2010, 10:47 AM   #12 (permalink)
Member
 
Goyena's Avatar
 
Join Date: Nov 1999
Location: Lyon, France
Posts: 837
Likes Received: 44
Thanks: 81
Thanked 110 Times in 67 Posts
Default

Great patch. I use it often. I would love if you could restrict what the patch considers as "horizontal" though. Thanks!!!
Goyena is offline   Reply With Quote
Old 06/07/2011, 01:30 AM   #13 (permalink)
Member
 
BenSWoodruff's Avatar
 
Join Date: Dec 2010
Posts: 14
Likes Received: 0
Thanks: 0
Thanked 2 Times in 2 Posts
Default Awesome idea...

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)
BenSWoodruff is offline   Reply With Quote
Old 06/07/2011, 05:57 AM   #14 (permalink)
Member
 
Join Date: Jul 2007
Posts: 64
Likes Received: 0
Thanks: 27
Thanked 1 Time in 1 Post
Default

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?
idiotboxxer is offline   Reply With Quote
Old 06/08/2011, 08:35 PM   #15 (permalink)
Member
 
Join Date: May 2011
Posts: 4
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default camera unlock

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.

Last edited by xs-sxs; 06/08/2011 at 08:40 PM. Reason: clarity
xs-sxs is offline   Reply With Quote
Old 01/02/2012, 04:53 AM   #16 (permalink)
Member
 
Join Date: Jan 2010
Posts: 172
Likes Received: 1
Thanks: 92
Thanked 36 Times in 20 Posts
Default

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 Files
File Type: patch USELESS_pre3_cameraLaunch.patch (1.4 KB, 1 views) Email Attachment
veerar is offline   Reply With Quote
Old 01/02/2012, 07:47 AM   #17 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

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?
__________________
Stuff and Things that I had a hand (or two) in:
WiFi File Sharing - Simple Network Sharing for webOS (Now available in Preware!)
Enyo Smooth Scrolling, Mojo Smooth Scrolling, Mojo FPS Booster, Mojo Tap Responsiveness, Mojo Flick Regulator, Mojo Speedy Switch, Pre3 Just Type Scrim Fix, HP webOS Carrier String, EDGE Icon Patches.

If you like any of the above and are feeling generous, why not ? :]
ShiftyAxel is offline   Reply With Quote
Old 01/06/2012, 06:36 AM   #18 (permalink)
Member
 
Join Date: Sep 2011
Posts: 43
Likes Received: 4
Thanks: 2
Thanked 1 Time in 1 Post
Default

doesn't even install via internalz. I'll quick install later today.
carguy303 is offline   Reply With Quote
Old 01/06/2012, 11:57 AM   #19 (permalink)
Homebrew Developer
 
ShiftyAxel's Avatar
 
Join Date: Dec 2009
Location: Here.
Posts: 624
Likes Received: 82
Thanks: 22
Thanked 167 Times in 84 Posts
Default

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.
ShiftyAxel is offline   Reply With Quote
Reply

 

Tags
camera

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0