maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [WIP] Closing Lens Cover to Lock Phone (https://talk.maemo.org/showthread.php?t=52990)

cfh11 2010-05-18 17:23

[WIP] Closing Lens Cover to Lock Phone
 
Ok.. so I really like the feature where you can open the lens cover to unlock the phone and launch the camera. However, it would be REALLY nice if you could do the reverse (lock the phone and close the camera app by closing the lens cover. I will often take my phone out just to snap a couple quick pics and this would be a lot more convenient.

I'm sure just a simple script would accomplish this, but I don't know enough to do it myself. :(

Spr33 2010-05-18 17:29

Re: Closing Lens Cover to Lock Phone?
 
The phone actually already somewhat has it built in. You can try it yourself:

Make sure phones locked. Open lens, take a picture, close the lens and the phone should lock back up.

Though I've noticed that if you touch the screen while the phone is unlocked, closing the lens cover only closes the camera app

kd_alex 2010-05-18 17:31

Re: Closing Lens Cover to Lock Phone?
 
Good idea! There is a lens cover open reminder app that was just released. Maybe talk to the guy who made this app and he can point you in the right direction. His user name is nicolai and the thread about the reminder is below.

http://talk.maemo.org/showthread.php?t=52534

cfh11 2010-05-18 17:50

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by Spr33 (Post 664528)
The phone actually already somewhat has it built in. You can try it yourself:

Make sure phones locked. Open lens, take a picture, close the lens and the phone should lock back up.

Though I've noticed that if you touch the screen while the phone is unlocked, closing the lens cover only closes the camera app

Regardless of whether or not I touch the screen, closing the lens cover closes the camera app only. Either way, I frequently edit pics on the spot so it would be nice if the lens cover could lock the phone in both scenarios.

cfh11 2010-05-18 17:50

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by kd_alex (Post 664530)
Good idea! There is a lens cover open reminder app that was just released. Maybe talk to the guy who made this app and he can point you in the right direction. His user name is nicolai and the thread about the reminder is below.

http://talk.maemo.org/showthread.php?t=52534

I thought about that but I didn't want to pollute that thread. Maybe I will PM him.

nicolai 2010-05-18 21:18

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by cfh11 (Post 664558)
I thought about that but I didn't want to pollute that thread. Maybe I will PM him.

Thanks for the invitation.

Nice idea, but I wouldn't use this feature, though.
I think it would be annoying very soon.
But I'll take a look anyway and test this in my lenscover reminder app.

regards nicolai

cfh11 2010-05-18 21:35

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by nicolai (Post 664883)
Thanks for the invitation.

Nice idea, but I wouldn't use this feature, though.
I think it would be annoying very soon.
But I'll take a look anyway and test this in my lenscover reminder app.

regards nicolai

Yeah, I don't think it really fits in your app. However, it would be a nice option to have (similar to the lens open option in Tweakr).

Even if I could accomplish this setting in command line I would be happy, but alas, I know nothing about coding.

nicolai 2010-05-18 21:48

Re: Closing Lens Cover to Lock Phone?
 
1 Attachment(s)
Quote:

Originally Posted by cfh11 (Post 664900)
Yeah, I don't think it really fits in your app. However, it would be a nice option to have (similar to the lens open option in Tweakr).

Even if I could accomplish this setting in command line I would be happy, but alas, I know nothing about coding.

I just added some code to lock the screen when the lens cover
is closed. This is not configurable, you have to uninstall the app
if you don't like it. I don't upload it to extras-devel, this is just for
you.

regards nicolai

F2thaK 2010-05-19 06:02

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by Spr33 (Post 664528)
Though I've noticed that if you touch the screen while the phone is unlocked, closing the lens cover only closes the camera app

this happens for me

pelago 2010-05-19 13:20

Re: Closing Lens Cover to Lock Phone?
 
Quote:

Originally Posted by Spr33 (Post 664528)
The phone actually already somewhat has it built in. You can try it yourself:

Make sure phones locked. Open lens, take a picture, close the lens and the phone should lock back up.

This only works if no other apps are running. If other apps are running, when you close the lens cover, the phone goes to the task switcher screen rather than locking.


All times are GMT. The time now is 02:02.

vBulletin® Version 3.8.8