Android Question Files on dirinternal are not deleted after uninstall

Neojoy

Member
Licensed User
Longtime User
I have a database file located on dirinternal, on b4a 5.02 after uninstall, this file was always deleted but in b4a 8 this file remains in some devices, it is removed only when I clean app data.

Is there something that I should do to remove this file on uninstall without change my app folder?

Thanks!
 
It has nothing to do with the B4A version. You should repeat your tests.

I repeated many times with same result. When I uninstall my app compiled in b4a old version, files are removed after uninstall.

My workaround was to check if is a new install or update, if is a new install I delete the files manually.

It only happened in Alcatel TCL-4034E for now. Onother devices works like desired
 
Upvote 0
Hey Erel, this behavior occurs when Automatic restore is on in Backup config. When I turned off the files has gone.

In b4a 5.02 my targetSdkVersion was 14, in b4a 8 is 26. Maybe this be the cause.

I'll try to insert android:allowBackup="false" in manifest file. This can be the solution!
 
Upvote 0
Back
Top