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
Lockscreen turning
Moderator: Martin
Re: Lockscreen turning
I do not see the practicality for this tweak...however i would like to switch the phone off when it is upside down.... anyone?
Re: Lockscreen turning
It's just a small fix to some apps foreclosing by preventing lockscreen changing its orientation while still allowing it to be in landscape.
Re: Lockscreen turning
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.
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.