Hallo
I have a Task which runs in the background. The Task is "protected" against closing through Android by a Notify, which permanently shows in the Notification Bar.
In this start Task I initialize some variables which I use in the main Scene.
For every variable I have a condition to set the value only IF UNSET (to protect the variables beeing reset).
In the properties of the Task I have set the Collision Handling to "Abort New Task".
In my main Scene of my Task I write now something in some Text Input Fields, close the Task to background again and wait (even several hours).
When I reopen now that main Scene again through the Notify (which does a Perform Task of the main Task) or by pressing the Task's Icon on my Homescreen, the text inputs are all still there, which is good.
BUT: the variables in the main Task are all reset to their initialized values!
As if the Collision Handling were set to "Abort Existing Task" (and the variables would be unset then and initialized again).
Or as if the Task is not aware of the previous Task and starts all over, but takes over the Scene with all its text inputs.
Or as if the first Task is not runing anymore after going to background, only the scene.
Or as if it were a bug ;)
How can I setup my Task to recognize that my variables are already set and should not be reset to their initialized values WIHTOUT using global values?
Thank
frank
Android 9.0 with Tasker (direct version) 6.2.6-beta