Switch Off WiFi, 3G, GPS when calling

Share and discuss your flows and ideas with other users.

Moderator: Martin

Post Reply
HarryCustom
Posts: 13
Joined: 27 May 2014 23:33

Switch Off WiFi, 3G, GPS when calling

Post by HarryCustom » 28 May 2014 21:14

Hello I am Harry from Italy! :)
Since 4 years ago I always used an app called Sanity that switch off WiFi, 3G and GPS during call.
I don't know if it is really more safe for human body phoning with all network off, but in doubt, I prefer not to risk.
So if you do not feel useful this flow consider it only an excercise that I've made.
Please be patient, I am not a programmer and it's my first attempt with automagic! :)

Basically the first flow do these things:

1. Check if Wifi is on and switch it off if a call is incoming or is outgoing
2. Do the same for GPS and mobile data connection
3. For every task a global variable is setted to 0 if the service was not active, to 1 if it was active and it has been stopped

The second flow starts when the call is terminated and checks all the variables and if thery are set to 1 it switchs on every service.

I've checked a lots of time, with only one service on, two and three and it seems to work, any advice or improvement is welcome!
Thanks to Mortuma for the explanation! :)
flow_group_Healty_Calls_20140528_225512.xml
(9.6 KiB) Downloaded 1320 times

jphermans
Posts: 31
Joined: 23 Mar 2014 19:25

Re: Switch Off WiFi, 3G, GPS when calling

Post by jphermans » 30 May 2014 05:07

Works fine, no need to make it better.

HarryCustom
Posts: 13
Joined: 27 May 2014 23:33

Re: Switch Off WiFi, 3G, GPS when calling

Post by HarryCustom » 30 May 2014 08:59

:)

kamil_w
Posts: 50
Joined: 22 Oct 2013 19:01

Re: Switch Off WiFi, 3G, GPS when calling

Post by kamil_w » 06 Jul 2014 15:35

Improvement avaible: :)
Could check if you are on speaker or if phone is far from ear and if yes - don't turn off.

HarryCustom
Posts: 13
Joined: 27 May 2014 23:33

Re: Switch Off WiFi, 3G, GPS when calling

Post by HarryCustom » 06 Jul 2014 16:36

I do not understand, could you explain better? :)

kamil_w
Posts: 50
Joined: 22 Oct 2013 19:01

Re: Switch Off WiFi, 3G, GPS when calling

Post by kamil_w » 06 Jul 2014 17:56

You are checking if WiFi, 3G, GPS are on to safe your health during calls. It has sense if you have the phone near your ear, but what if you are driving a car, using online navigation and want to answer the phone on the speaker?

HarryCustom
Posts: 13
Joined: 27 May 2014 23:33

Re: Switch Off WiFi, 3G, GPS when calling

Post by HarryCustom » 06 Jul 2014 18:45

So if the phone is near my ear it has to work normally, if it is not the speakerphone has to switch on.
If it is this, you have first to check if you are in a car, or the task activates itself also when you are calling at home or at office and you have to digit a number on the phone.
Then you have to check if the phone is near your ear, I don't know if it is possible, I will check... :)

Post Reply