5,814,981 Members 39,741 Now Online
XDA Developers Android and Mobile Development Forum

(app) automagic flow - lock device

Tip us?
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Jun 2012
Default (app) automagic flow - lock device

hello 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


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.


mkamils / velokamil
justmpm's Avatar
Forum Moderator
Thanks Meter 2,487
Posts: 3,128
Join Date: Dec 2010
Location: Jumpston Junction
Sorry, but I didn't see a link to an app, so this looks like a placeholder thread and was therefor closed.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes