Page 1 of 1
Gps off
Posted: 15 Feb 2016 02:34
by Ankit Bindal
Hi,
Set gps state off not working on android 5.0
Gps state on works perfectly.
Re: Gps off
Posted: 15 Feb 2016 09:20
by kamil_w
It works corectly. Location system has changed a little in Android 5.
When you are turning on GPS then location daemon is turning on. When you are turning off GPS then location daemon is being set to use WiFi and mobile network as location provider.
You have to find a way to enable/disable whole location daemon instead of just GPS.
I think you can make it using Set System Setting action.
Edit:
Or better solution
instead of on/off gps use both actions:
Set gps state
set network location state
Re: Gps off
Posted: 15 Feb 2016 11:37
by Mar
But you'll need a rooted device.
Re: Gps off
Posted: 16 Feb 2016 02:29
by TraianC
I don't have a rooted device and I use Control UI action to enable/disable GPS when I start/stop Waze.
Re: Gps off
Posted: 17 Feb 2016 15:27
by Ankit Bindal
Thanks kamil.
It worked.