I would like to create 2 widgets to turn Tasker on and off (Enable and Disable tasker).

If it helps, I have Secure Settings and Zooper Widget. My phone is also rooted.

Any help would be much appreciated.

  • Have you tried to just create two Tasker tasks for that, and then use Tasker's own widget to trigger them?
    – Izzy
    Mar 4 '15 at 17:23
  • I thought of it, but I don't know how to go about doing that. Could you please post it as an answer?
    – adb16x
    Mar 4 '15 at 17:26

Disclaimer in advance: I didn't try this myself – so I'm not sure if the "turning on" part will work.

  1. In Tasker: Create a task to stop the Tasker service (Tasker › Disable)
  2. In Tasker: Create a task to start the Tasker service
  3. On your homescreen, add a Tasker-widget (Tasker ships with that), and connect it with the Task.

So when you hit that widget for #1, Tasker will be disabled. You will have noticed the strike-through at #2: If Tasker is not active, it does not listen – so there is no such action. From the Tasker help on "Disable":

Permanently turn off Tasker's Monitor and stop running tasks.
Tasker will not do anything further until enabled via the On/Off button in the Profile List screen.

So I am afraid that's all you can get: a widget to disable Tasker, but none to (re-) enable it.

  • Ah yes, that's what I was afraid of. Guess I'll just have to make do then. Thanks for the answer!
    – adb16x
    Mar 4 '15 at 17:48
  • Afraid so, yes. If the answer helped you, you can "upvote" it (that's how we say "thanks" at SE ;). If it answered your question, please "accept" it by clicking the check-mark next to it (makes it easier for other searchers to identify it as "solved").
    – Izzy
    Mar 4 '15 at 18:56
  • Since I don't have enough rep for an upvote, I can only mark as solved. Here you go :)
    – adb16x
    Mar 5 '15 at 1:48

Simple. You can create a stand alone app (export as app) in Tasker. The stand alone app should start Tasker and use AutoInput Plugin to long click on the Enable Tasker icon.

Then just click the Enable Tasker (exported app). Not so elegant but it works.

I cant find any 'Enable Tasker' action but there should be a shortcut or something so we can make it elegant :-)

  • "I cant find any 'Enable Tasker' action" – there must be some intent you could call to do that, which you could create a task for. Apart from that: no need to have/create an additional app for that, as my answer shows :)
    – Izzy
    Sep 5 '15 at 15:27
  • You find the tasker enable button when you start tasker. Try long hold on the tasker icon up left corner. I dont know if a intent exists for that. But if you got autoinput you can long press it. The stand alone app is needed because, like you sad, tasker wont listen to the tasker widgets when tasker is disabled. You can create a stand alone app that can start the tasker service.
    – Knight
    Nov 16 '15 at 19:22
  • I know about that button – but that I've got to press with my fingers, you cannot trigger it automatically ;)
    – Izzy
    Nov 16 '15 at 20:15
  • You can use a tasker plugin called AutoInput (dont need root) to press it automatically. No real fingers needed :-)
    – Knight
    Nov 17 '15 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.