Lockscreen turning

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Lockscreen turning

Post by MURTUMA » 07 Feb 2014 13:27

I like to keep my lockscreen turning depending on if I use my phone in landscape or portrait position. However, in some rare cases if I change my lockscreen orientation, it might mess up the app behind it. This flow fixes that by locking the orientation in landscape if I'm using the phone in landscape position. Same for portrait. Only after I unlock my phone, it allows automatic orientation again.

http://automagic4android.com/flow.php?i ... 96b26f37c1

henkster
Posts: 23
Joined: 08 Feb 2014 10:52

Re: Lockscreen turning

Post by henkster » 08 Feb 2014 10:56

I do not see the practicality for this tweak...however i would like to switch the phone off when it is upside down.... anyone?

User avatar
MURTUMA
Posts: 697
Joined: 05 Mar 2013 22:43

Re: Lockscreen turning

Post by MURTUMA » 09 Feb 2014 11:51

It's just a small fix to some apps foreclosing by preventing lockscreen changing its orientation while still allowing it to be in landscape.

velokamil
Posts: 2
Joined: 02 Mar 2014 14:09

Re: Lockscreen turning

Post by velokamil » 02 Mar 2014 15:09

hi guys.
I wanna share my powerfully lock flow.

1. create a global_variable, type: number, value: 5

2. create flow A with user present as the trigger --> (act) set flow state: enable B (which "B" is the name of other flow) --> (act) set screen time out : 2 minutes.

3. create flow, name it as "B" (it is flow I mention earlier). (trigger) periodic timer: every 25s (uncheck wake device) --> (conditions) device orientation: face up, face down --true--> (act)execute Flows C.

4. create flow C. leave blank the trigger --> (act) script : a = global_variable --> (conditions) expression a <= 0.0 --false--> (act) script : a = a - 1 --> (conditions) device orientation: face up, face down --true--> (act) notification on screen: {a} --> loop it back to (condition) expression a <= 0.0 --true--> (act) lock device.

5. create flow D. (trigger) display state: off -->

create 2 action for this trigger :
a. set flow state: disable B
b. script: global_variable = 5

6. create flow E. (trigger) notification on status bar selected: turn off --> (act) script: global_variable = 0 --> execute flow: C

done

this flows will turn your device off after 30s only when it lay down with facing up / down, or when you press button on the notification bar.

Post Reply