Hi,
Set gps state off not working on android 5.0
Gps state on works perfectly.
Gps off
Moderator: Martin
Re: Gps off
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
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
But you'll need a rooted device.
Re: Gps off
I don't have a rooted device and I use Control UI action to enable/disable GPS when I start/stop Waze.