Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Closed

(app) automagic flow - lock device

OP mkamils

2nd March 2014, 04:38 PM   |  #1  
OP Junior Member
Thanks Meter: 0
 
6 posts
Join Date:Joined: Jun 2012
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

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.

sign,

mkamils / velokamil
2nd March 2014, 05:24 PM   |  #2  
justmpm's Avatar
Forum Moderator
Flag Jumpston Junction
Thanks Meter: 2,996
 
3,453 posts
Join Date:Joined: Dec 2010
Sorry, but I didn't see a link to an app, so this looks like a placeholder thread and was therefor closed.
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes