InCall → Phone face down = silent

Share and discuss your flows and ideas with other users.

Moderator: Martin

berliozz
Posts: 9
Joined: 21 May 2013 09:51

InCall → Phone face down = silent

Post by berliozz » 21 May 2013 12:09

Flow for income call. Set silent when you turn phone to face down.
[img]Screenshot_2013-05-21-13-54-26.png[/img]
facedwn.xml
(2.68 KiB) Downloaded 1261 times
I need help to update this flow.
After end of call volume don't revert back to normal.
How to do it?
Attachments
Screenshot_2013-05-21-13-54-26.png
Screen Flow
Screenshot_2013-05-21-13-54-26.png (56.96 KiB) Viewed 35073 times

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: InCall → Phone face down = silent

Post by pat2net » 21 May 2013 15:30

How about that?

http://automagic4android.com/flow.php?i ... 17e6d1bcd2

I add an action to put the ringer on if it's not face down.

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

Re: InCall → Phone face down = silent

Post by MURTUMA » 22 May 2013 20:11

Not a good idea to put such loop to the flow. It's not even necessary. The trigger causes the condition to check phone's orientation every time you get a call, so after the condition just put the phone to either silent or normal.

http://automagic4android.com/flow.php?i ... 081f8b40aa

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: InCall → Phone face down = silent

Post by pat2net » 23 May 2013 00:08

I agree with you but i think it's to be able to silence the ringer at any time when the phone is ringing.

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

Re: InCall → Phone face down = silent

Post by MURTUMA » 23 May 2013 02:29

That's true but it is also true in your flow and the updated one. You can easily add there more conditions, ie. time frame if you want that to happen only at night or something.

berliozz
Posts: 9
Joined: 21 May 2013 09:51

Re: InCall → Phone face down = silent

Post by berliozz » 23 May 2013 09:05

I solved my problem.
I think that no perfect solution, but it works.

Can anybody optimize it?
call_flow.jpg
Call flow
call_flow.jpg (66.36 KiB) Viewed 35009 times
call.xml
Call
(3.77 KiB) Downloaded 1190 times
end_call.xml
End Call
(1.94 KiB) Downloaded 1108 times

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

Re: InCall → Phone face down = silent

Post by breeze » 23 May 2013 10:28

ImageImage
yes I can

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

Re: InCall → Phone face down = silent

Post by MURTUMA » 23 May 2013 11:52

@perliozz: that loop you have there, doesn't serve any purpose.

I'm not sure if the time before the call automatically hangs up is operator specific but I believe it's about two minutes. Here's simple flow that silences phone during call and after two minutes restores the volume. I believe that's all you need. You can easily add the time frame condition if you need one and also set the time, before it restores volume, to whatever you need.

http://automagic4android.com/flow.php?i ... 56d4f09fd9

inReinbek
Posts: 95
Joined: 02 Feb 2013 22:04

Re: InCall → Phone face down = silent

Post by inReinbek » 23 May 2013 12:28

I didn't check the flow of MURTUMA !!


http://automagic4android.com/flow.php?i ... 506ed85d3b

How about this (quick and dirty):
- trigger "incoming call"
- condition "display orientation face down"
- no: action "set ringer mode normal"
- yes: action "set ringer mode silence"

this trigger starts while an incoming call is signalled by the cell-net (about every 1 to 3 seconds in the GSM) - so you're able to decide to turn your phone upside down while an incoming call is ringing and you won't be disturbed (this time).

berliozz
Posts: 9
Joined: 21 May 2013 09:51

Re: InCall → Phone face down = silent

Post by berliozz » 24 May 2013 07:15

MURTUMA

Thank of your propose, but this solution I don't like. Two minutes time out mean that flow will proceed. In case with two flow we have a first flow, which stop execute after off-hook or face down and second flow, which roll back all changes. You case may works, but a want to get a more elegant solution.

inReinbek

Just try to create this flow samself. I was do. They no correct work for me. Without sleep it don't work. Without additional triggers and condition don't react on all possible cases.

breeze – i try your flow, try to modify them and always get error and abnormal finishing of flow:
- if condition Ringing - error when off-hook;
- if condition Off-hook and Ringing - don't Silence;
- if condition Off-hook - error with missed call.

:evil: 5 days I try to create this flow and every time find some bugs in my logic.

Post Reply