Android Question when i uninstall the app the files in File.DirInternal are not deleted

Pesciolina

Active Member
Licensed User
Longtime User
Hello everyone.
Until now I copied the SqLite db to DirDefaultExternal, now I moved to the File.DirInternal folder,
but I didn't have that when I uninstall the db it is not deleted, where am I wrong?
Thank you
B4X:
Public SQLDataBasePath As String                : SQLDataBasePath = File.DirInternal
Public SQLDateBaseName As String                : SQLDateBaseName = "penalitaslalom.db"

If File.Exists(Starter.SQLDataBasePath, Starter.SQLDateBaseName) = False Then
        CopyDBIfNeeded("penalitaslalom.db")
        Starter.SQL1.Initialize(Starter.SQLDataBasePath, Starter.SQLDateBaseName, True)
Else
        Starter.sql1.Initialize(Starter.SQLDataBasePath, Starter.SQLDateBaseName, False)
End If

Sub CopyDBIfNeeded (Filename As String)
    If File.Exists(File.DirInternal, Filename) = False Then
        File.Copy(File.DirAssets, Filename, File.DirInternal, Filename)
    End If
End Sub
 
Top