The curious case of Control UI vanishing data
Posted: 02 Sep 2017 00:52
Hello,
Here's something that is driving me nuts.
Let app GPS-Yes-No be the app the flow works on.
Let a partial flow be:
ControlUI= --> text=getText(X,Y), sleep(3000)
Notification on screen: {text}
Let "Off" be one of the expected values in text.
First execution of the flow: text returns "Off" as expected, Hurrah!
For the all excutions => close the input data (com.android.settings==>com.android.settings.Settings$LocationSettingsActivity)
that is being used to retrieve the "Off". A new copy will be loaded by the flow or so I think(?)
Let n be the number of successive runs of my flow.
The issue I'm running into:
After the first run of the flow and obtaining the "Off", further runs return NOTHING.
Litmus Test: (after all I was chemist some 45 years ago)
I intercepted the text returned after (n+1...n+m) executions.
1. All of them return NULL (text == "").
2. The problem does not go away by just restarting the Tablet (Samsung Galaxy Tab S3).
(Android 7.0)
3. From the Log: Object 'GPS-Yes-No' showing toast text ' '.
4. From Debug Dialog, text = blank
5. Notification on Screen: null( from the Log)
Question: Does this behavior have some explanation? What am I possibly doing wrong? or perhaps I could use some hints on how to further debug this. A lot of flows I have would be using this approach.
Thank You
Husky
Here's something that is driving me nuts.
Let app GPS-Yes-No be the app the flow works on.
Let a partial flow be:
ControlUI= --> text=getText(X,Y), sleep(3000)
Notification on screen: {text}
Let "Off" be one of the expected values in text.
First execution of the flow: text returns "Off" as expected, Hurrah!
For the all excutions => close the input data (com.android.settings==>com.android.settings.Settings$LocationSettingsActivity)
that is being used to retrieve the "Off". A new copy will be loaded by the flow or so I think(?)
Let n be the number of successive runs of my flow.
The issue I'm running into:
After the first run of the flow and obtaining the "Off", further runs return NOTHING.
Litmus Test: (after all I was chemist some 45 years ago)
I intercepted the text returned after (n+1...n+m) executions.
1. All of them return NULL (text == "").
2. The problem does not go away by just restarting the Tablet (Samsung Galaxy Tab S3).
(Android 7.0)
3. From the Log: Object 'GPS-Yes-No' showing toast text ' '.
4. From Debug Dialog, text = blank
5. Notification on Screen: null( from the Log)
Question: Does this behavior have some explanation? What am I possibly doing wrong? or perhaps I could use some hints on how to further debug this. A lot of flows I have would be using this approach.
Thank You
Husky