Since AM didn't have supplied variables in Location Provider & Mobile Datanetwork. I had difficult to check the state.
I would like to request supplied variables location_state from Location Provider Enabled (trigger & condition).
location_state
The location state (0=unknown, 1=passive, 2=network, 3=GPS, 4=All, 5=disabled)
Req variable location_state from Location Provider Enabled
Moderator: Martin
Req variable location_state from Location Provider Enabled
Last edited by natong on 01 Oct 2015 05:18, edited 3 times in total.
Re: Req variable data_state from Location Provider Enabled
Also request supplied variables data_state from Mobile Datanetwork Enabled (trigger & condition).
data_state
The data state (0=unknown, 1=enabled, 2=disabled)
data_state
The data state (0=unknown, 1=enabled, 2=disabled)
Re: Req variable location_state from Location Provider Enabl
I add it to the todo-list.
In the mean time you can use action Init Variable System Setting for both cases, however it's not really official so it might not work on some ROMs:
Location case:
Category: Secure
Name: location_providers_allowed
value will be a comma separated list like gps or network,gps or an empty string when location is turned off
Mobile data case:
Category: Global
Name: mobile_data
value will be 0 for disabled and 1 for enabled
Regards,
Martin
In the mean time you can use action Init Variable System Setting for both cases, however it's not really official so it might not work on some ROMs:
Location case:
Category: Secure
Name: location_providers_allowed
value will be a comma separated list like gps or network,gps or an empty string when location is turned off
Mobile data case:
Category: Global
Name: mobile_data
value will be 0 for disabled and 1 for enabled
Regards,
Martin
Re: Req variable location_state from Location Provider Enabl
Thank you very much. Your suggestion work great in my phone. Make my flow easiest.