• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

%ROAM variable

  • Thread starter Thread starter Member282753
  • Start date Start date
M

Member282753

Guest
In reviewing the documentation I thought I had what was a relatively simple Tasker profile in mind. I wanted to use the roam variable to detect when my phone was roaming and simply stop my email app from checking email. My email app is also tasker integrated.

I had planned to use the roam variable in a profile as a state context. However, Tasker says that it does not support the variable in that way. Am I missing something easy or is this just not possible?
 
There is a way.

You can create a profile 'New cell ID' (for example), using the context:
Variable Set > Variable = %CELLID

Then in the task, you can do:
If % ROAM ~ on
...
Else
...
End If


Here's an example:

Task "Check Roaming":

If %ROAM !~ %PreviousRoaming
Alert > Flash "The roaming state has changed"
Task >Perform task "Set connectivity" (another task I created that sets WiFi, data and sync according to a number of parameters including roaming)
End if
Variables > Variable set > %PreviousRoaming to %ROAM
 
Back
Top Bottom