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

Making a Widget with Tasker?

RonH54

Well-Known Member
Can someone teach me how to make a Widget with Tasker that is a Toggle to Turn Data Use and Roaming On/Off?

Thanks
 
long press the homescreen, select widgets, select task, select new task

once it loads, add the tasks you want the widget to execute

it will be something along the lines of Network > Mobile Data > Toggle

(you can make the widget icon & label change to reflect the on/off status but that requires more steps)
 
long press the homescreen, select widgets, select task, select new task

once it loads, add the tasks you want the widget to execute

it will be something along the lines of Network > Mobile Data > Toggle

(you can make the widget icon & label change to reflect the on/off status but that requires more steps)

When you say Homescreen,you mean the Screen when I Open Tasker? When I Long press my Main Homescreen I get Widgets but I don't have an option to Select Task there.
 
nope, by homescreen i mean any of the 'main' screens of the phone.

That's odd that you don't have it listed under your available widgets (I get 2: Task, and Task Timer). Do you have the full version? if so, try reinstalling
 
nope, by homescreen i mean any of the 'main' screens of the phone.

That's odd that you don't have it listed under your available widgets (I get 2: Task, and Task Timer). Do you have the full version? if so, try reinstalling

Thanks I see it. I set to Toggle so if Data Use is On when I hit the Widget it Turns Off? Then hit again it back On? How do you edit a Widget with Tasker once you have made one?The steps you gave me worked Great and the Toggle Widget worked but I would like to edit to where I can See On/Off Status.
 
long press the homescreen, select widgets, select task, select new task

once it loads, add the tasks you want the widget to execute

it will be something along the lines of Network > Mobile Data > Toggle

(you can make the widget icon & label change to reflect the on/off status but that requires more steps)


Do you know the Steps on how to Make the Widget Icon and Label Change to reflect On/Off Status?

Thanks
 
there's several ways to do it,

off the top of my head...

you could try adding the following tasks to the widget task you already have:

Set Variable %MOBILE to 0 if %MOBILE not set
Set Widget Icon to (off icon) if %MOBILE doesn't equal 0
Set Widget Icon to (on icon) if %MOBILE equals 0
Add Variable %MOBILE value of 1
Clear Variable %MOBILE if %MOBILE greater than 1

They need to be added in that order, and i usually tick 'do maths' whenever the option is there for the variable so do that too (also, you can rename MOBILE to whatever you want, trust me I know how annoying it is to type variable names into tasker!)

Hope it works :)
 
there's several ways to do it,

off the top of my head...

you could try adding the following tasks to the widget task you already have:

Set Variable %MOBILE to 0 if %MOBILE not set
Set Widget Icon to (off icon) if %MOBILE doesn't equal 0
Set Widget Icon to (on icon) if %MOBILE equals 0
Add Variable %MOBILE value of 1
Clear Variable %MOBILE if %MOBILE greater than 1

They need to be added in that order, and i usually tick 'do maths' whenever the option is there for the variable so do that too (also, you can rename MOBILE to whatever you want, trust me I know how annoying it is to type variable names into tasker!)

Hope it works :)

Thanks for all the Info. Can you edit a Widget you have already made? The Widget I made is like someone Posted, I have a Task in the Widget Called "Mobile Data" and I just set it to Toggle. Then I made an Exit Task again with "Mobile Data" and again set to Toggle. I may not even need an Exit Task since I have set Toggle.

Thanks
 
Thanks for all the Info. Can you edit a Widget you have already made?

Your widget should be linked to a task. Go into Tasker, tap "tasks" near the bottom right corner, select the task that is associated with that widget in the drop down menu, and then you can edit it.
 
Your widget should be linked to a task. Go into Tasker, tap "tasks" near the bottom right corner, select the task that is associated with that widget in the drop down menu, and then you can edit it.

Thanks. I figured you could edit a Task within the Widget but can you add a new Task to a Widget once you have created it?
 
Thanks. I figured you could edit a Task within the Widget but can you add a new Task to a Widget once you have created it?
I don't think you can add a new task to an established widget, but like you say, you can edit a task which is called by the widget - for this reason, I prefer to make a new titled task for any widget I create, then I can edit that task as my needs change.
 
I don't think you can add a new task to an established widget, but like you say, you can edit a task which is called by the widget - for this reason, I prefer to make a new titled task for any widget I create, then I can edit that task as my needs change.

Can we actually make widgets or just toggles?
 
Back
Top Bottom