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!
Switch Off WiFi, 3G, GPS when calling
Moderator: Martin
Re: Switch Off WiFi, 3G, GPS when calling
Works fine, no need to make it better.
Re: Switch Off WiFi, 3G, GPS when calling
Improvement avaible:
Could check if you are on speaker or if phone is far from ear and if yes - don't turn off.
Could check if you are on speaker or if phone is far from ear and if yes - don't turn off.
-
- Posts: 13
- Joined: 27 May 2014 23:33
Re: Switch Off WiFi, 3G, GPS when calling
I do not understand, could you explain better?
Re: Switch Off WiFi, 3G, GPS when calling
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?
-
- Posts: 13
- Joined: 27 May 2014 23:33
Re: Switch Off WiFi, 3G, GPS when calling
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...
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...