Hi!
I am installing my app in the phone but I dont want that my db being sustitud anytime that I install my app.
I use this code to check if my DB is there
'
My DB is stored in /mnt/sdcard/Android/data/jq.clock/files. Each time that I run the app always copy my new DB to the path external doesnt matter that DB is there.
The condition always is true
I am using the phone as testing debugger.
I am installing my app in the phone but I dont want that my db being sustitud anytime that I install my app.
I use this code to check if my DB is there
'
B4X:
If File.Exists(File.DirDefaultExternal, "clock.db") = False Then
File.Copy(File.DirAssets, "clock.db", File.DirDefaultExternal, "clock.db")
End If
My DB is stored in /mnt/sdcard/Android/data/jq.clock/files. Each time that I run the app always copy my new DB to the path external doesnt matter that DB is there.
The condition always is true
I am using the phone as testing debugger.