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

Change app icon based on network connection?

Arthyn

Lurker
Hi everyone! Hope you're having a great day!


I'm a complete newbie to tasker. I was wondering if there was a way to set up tasker, so that if I was on wifi, my icons on the desktop would be different then if I was on 3G.

An example being, if I was on wifi, the hangouts app would show in my dock, but if I wasn't connected to wifi, the google messenger app would be there in place.

Thanks,
-Arthyn
 
Sure, you can do it in three steps:

1 - create a task and give it a name (let's call it MyWidgetTask). Task contents:
If %WIFII ~ *connection* [checks if connected]
Then launch app Hangouts
Else launch app Messenger
end if

2 - Add a widget to your homescreen based on the MyWidgetTask task.

3 - Create a wifi profile task to toggle the widget icon based on the state wifi connected:
Context: wifi connected
Enter task: Set the widget icon for MyWidgetTask to the hangouts app icon
Exit task: Set the widget icon for MyWidgetTask to google messenger app icon

So we ended up managing the icon and the decision on what app to launch separately, but based on the same condition (wifi connected)
 
Last edited:
Thanks for your reply!
How exactly do I tell my enter and exit task to change the widget icon? I used Set Widget Icon as my action category, but I'm not sure how to link it to MyWidgetTask
 
In the dialogue for the Set Widget Icon Action (see first screenshot attached) - the top line is for is "Name",which should end up saying MyWidgetTask. But rather than typing that name (which creates potential for typo's or logical errors linking to tasks that are not widgets), I prefer instead to tap on the magnifying glass on the upper right hand corner. That brings up another diagloue "Widget Select" (see second screenshot attached) which displays all the tasker widgets on your homescreen (my particular screenshot shows my own five Tasker widgets: Show Tasks Running" thru "WifiWidTask"). Assuming you have already added MyWidgetTask to your homescreen (following the sequence I suggested), then MyWidgetTask should show up in your list of choices... tap it to select it.
 

Attachments

  • Screenshot_2015-07-12-21-08-09.png
    Screenshot_2015-07-12-21-08-09.png
    208 KB · Views: 112
  • Screenshot_2015-07-12-21-08-29.png
    Screenshot_2015-07-12-21-08-29.png
    157.6 KB · Views: 81
Last edited:
Back
Top Bottom