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

Why isn't my compiled task turning on a profile?

BOTTOM LINE: My compiled dialog scene app will announce a text, yet won't set a profile to on status. Why?

DETAIL: I have a task called "battery menu" which displays a menu scene called "battery menu". When it runs, user chooses "Plugged In", and a task called "initialize plugged in battery" runs. The task does this:
1. Announces that the device is plugged in
2. Sets a profile called "battery plugged in" to on

When I run the task battery menu from tasker, it correctly displays the battery menu scene. I click "Plugged in" and it correctly announces the device is plugged in then correctly sets the battery plugged in profile to on.

But when I compile it, and run the compiled app from the device desktop, it only announces the device is plugged in. IT DOESN'T set the profile to on. I've got all three components (task, scene, and profile) in the base project. What's the problem?

Thanks in advance

IF YOU'RE WONDERING WHY I HAVE SUCH AN APP, KEEP READING:
The profile runs every 15 minutes, and checks the battery level. If the device is plugged in, it sets brightness and time-out generously for user. If another profile is active "Battery not plugged in", every 15 minutes it runs, checks the battery level, and sets display brightness and time out less generously.
 
To aid in understanding it is good to post the description you are using. Long press on the profile name and choose Export / Description to Clipboard and paste it into a post.

---

Any profiles that are being manipulated by any tasks in the project must be included in that project.

If you stop for a second and consider the implications you will conclude that that is the way it must be. If you could toggle a profile outside the project how would you ever manage it? Install two kids that include profiles with the name ALPHA. What happens when ALPHA is toggled in a task in one of the two projects? Which is toggled? Consider the security implications of permitting an outside task manipulate the state of the profiles in a project.

To do what you want ... place both profiles in the project and instead of exporting a profile to an apk ... export the project (containing two profiles) to the apk.

---

It is a little misleading to refer to a Tasker kid as compiled or a compiled apk. The word compiled draws your attention and assumptions away from the fact that they are Tasker-unique elements that must adhere to the Tasker-rules. Global in a kid is limited to that kid.

... Thom
 
Last edited:
Back
Top Bottom