mrjaw Active Member Licensed User Longtime User Sep 4, 2012 #1 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 ' Code: 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.
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 ' Code: 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.
margret Well-Known Member Licensed User Longtime User Sep 4, 2012 #2 Change it to File.DirRootExternal and it will work. Upvote 0
P Penko Active Member Licensed User Longtime User Sep 6, 2012 #3 Isn't it a little impolite to store the database in the main root folder of the sd card? My opinion is that you have to either create a directory there or use the app default external. Sent from my HTC Desire using Tapatalk Upvote 0
Isn't it a little impolite to store the database in the main root folder of the sd card? My opinion is that you have to either create a directory there or use the app default external. Sent from my HTC Desire using Tapatalk
mc73 Well-Known Member Licensed User Longtime User Sep 6, 2012 #4 Can't possibly be sure, but perhaps you're facing a similar issue: http://www.b4x.com/forum/basic4andr...pp-very-fast-androids-startup.html#post115942 Upvote 0
Can't possibly be sure, but perhaps you're facing a similar issue: http://www.b4x.com/forum/basic4andr...pp-very-fast-androids-startup.html#post115942