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

Wait 500ms

I spent the last 14 hours trying to nail down a problem and finally succeeded.

I have a Profile, Enter Task, Exit Task, Scenes, and support Tasks that I distributer to customers as an app. It manipulates the volume controls and had to be revised with the changes introduced by 5.1.

I develop it on a Turbo (5.1) and test it on the Turbo (5.1), Maxx (4.4.4), and Bionic (4.1.2).

I was monumentally frustrated. Things that ran an hour ago no longer ran. An hour later things that ran an hour ago would not run. Things that ran without a problem inside Tasker failed on one of he phones when the Project was exported as an app and installed on them.

I finally happened on the solution ... the exported app had timing issues when the Profile activated a Task or when one of those Tasks activated another Task.

The solution ... I put a half- second delay (Wait 500ms) as the first action in each Task. After that they ran on all three phones without a hiccup.

I don't remember ever having this problem in the past and wonder if it was introduced with the latest update to App Factory.

... Thom
 
The version that was released today corrected the problems.

I removed the Wait 500ms actions and exported as an app. I then installed the app on the Turbo, Maxx, and Bionic. It runs the same way in all of those as it does inside Tasker on the Turbo.

... Thom
 
Back
Top Bottom