Proximity answer call & Proximity after call lock

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
breeze
Posts: 7
Joined: 17 May 2013 06:18

Proximity answer call & Proximity after call lock

Post by breeze » 02 Aug 2013 08:06

Please sorry for google translate!

Proximity answer call:
Image

The purpose of this flow is to implement the ability to answer incoming call by presentation to the smartphone to your ear. Achieving this flow is based on the reading of the proximity sensor.
Features:
1. Lock device when it in pocket.
2. Turn screen on and sound off (only in Ringer:Normal mode), when the smartphone gets from pocket.
3. Sound off (only in Ringer:Normal mode), if at the time an incoming call smart is not in pocket and lies on a horizontal surface (i.e., when the smart likely to be in the user's hands).
4. Vibration before the moment of connection.
Warning: for run this flow you must have root access. For correct operation is necessary to increase the value Automagic emergency stop. Try to start 500

Proximity after call lock:
Image
This flow provides an automatic lock and show home screen, if to put an smartphone in your pocket after the call end.
1. The flow is executed 14 seconds, and only if no other calls.
2. If, at the beginning of the flow would be the smart already in pocket (or are still in the head, for example, if the line is busy for outgoing call), the first 7 seconds will not show home screen, and if you remove the smart out of pocket (to move away from the head) - the screen turns on. If the 7 seconds will not be activity - will be show home screen and stop flow.
Attachments
Proximity after call lock.xml
(6.19 KiB) Downloaded 463 times
Proximity answer call.xml
(9.08 KiB) Downloaded 491 times

Post Reply