I'm having the same problem when testing on my phone!
I have a button in the app that does a 'TinyDB1.ClearAll', and exit
the app with 'close.application', but the data still persists in
memory when I relaunch the app.
So, I long-press the app icon to get the App Info dialog,
where I CLEAR STORAGE and CACHE. Then I UNINSTALL. Well, the
data is still found on the next launch!
The ONLY way I found is to create a new version of
the app (by changing Screen1 AppName). The new version
has no knowledge of the preceding one and everything
works.
I suppose rebooting would also fix this; didn't try it.
Not sure what you are referring to, but in my Screen1.Initialize, I call a procedure which consists of about 20 Call DB.StoreValue tag... statements. I'm storing here Booleans, numbers and strings, no lists. The DB is used across 3 or 4 other screens. I'm not storing any lists, and I clear the db with a button which just does a call DB.ClearAll -- but data persists after I rerun the app. I'll do some more debugging...
Then I UNINSTALL. Well, the data is still found on the next launch!
What I meant here is, after UNINSTALL, I reinstall the same app, of course. The new
install still finds (at least some) data. For example, the app counts the number
of mails and SMS sent and stored them in the DB. The newly installed app
finds them and displays them!
My phone runs Android 9.0, if that matters.
Does clearing the cache and stored data of the Companion app make a difference?
(I know it shouldn't make a difference for compiled apps, but it's worth a try.)
I normally use the Companion, but I vaguely remember starting testing on a real device as well precisely because the Emulator kept stale data and was confusing me. I will try your suggestion.
Greetings @Anke , yes, I applied that way... but when I install the application again, the data can be seen again... it remains persistent
Also note that this block ( TinyDB1.ClearAll) deletes everything that is in the application, but I have other pages where I have another listview that would also be deleted with that block
Pls share your sample apk and aia inorder to test since you got suggestions in all sort of way.. also tell us in which Android mobile you are testing the apk
So you Click Button3, and it clears TinyDB1.
You then load ListView1.Elements from TinyDB1.Taglist.
I expect ListView1.Elements to be empty.
Notice that there exists a Refresh block for ListView1.
Have you tried that?
Are you unhappy with the possibility that other ListViews based on TinyDB1 taglists would come up empty after clearing TinyDB1?