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

%ROAM variable

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
 
  • Like
Reactions: D-U-R-X
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones