7

Create User Tasker actions with Java Code.

With Java Code actions, the possibilities in Tasker are endless. I’ve been thinking about the reusability of some of my Tasker projects that rely on this action, and it would be great if we could create custom Tasker actions (similar to Flash or Notify) using the Java Code action. It would work much like what we can already do with AutoTools WebScreens.

This would also be a great way to share complex tasks while providing an easy configuration method for non-advanced users.

1 reply

Thanks for the request! What would be the advantage over using the "Perform Task" action?

Some of the points behind my proposal are the same as the ones here: https://tasker.helprace.com/i1994-add-support-for-user-created-actions-and-contexts

I was thinking of a different approach, though—something like an API:

action = tasker.createAction(id, name, description)
action.appendParam(id, name)
...

Having a custom action instead of a Perform Task action is more intuitive if I want to share it with others. I don't need to explain what parameters they have to write or the order they need to use. And depending on the action, we could potentially use a helper like other actions have (pick file/directory/app/color/contact). This would be much easier and more user-friendly than using a Perform Task action. And all of this without having to save the action as a task.