S slowtime Active Member Licensed User Longtime User Nov 8, 2011 #1 Hi, I use this code: If File.Exists(File.DirDefaultExternal,"cat.db") = False Then File.Copy(File.DirAssets,"cat.db",File.DirDefaultExternal,"cat.db") End If If database.IsInitialized = False Then database.Initialize(File.DirDefaultExternal, "cat.db", False) End If Click to expand... When I re-install an application in some devices (Ideos, Olipad 100) I can not find my db file under the application dir. In Samsung Galaxy o Galaxy s II I always find my db under the application dir. How can I preserve my db file? Thank you
Hi, I use this code: If File.Exists(File.DirDefaultExternal,"cat.db") = False Then File.Copy(File.DirAssets,"cat.db",File.DirDefaultExternal,"cat.db") End If If database.IsInitialized = False Then database.Initialize(File.DirDefaultExternal, "cat.db", False) End If Click to expand... When I re-install an application in some devices (Ideos, Olipad 100) I can not find my db file under the application dir. In Samsung Galaxy o Galaxy s II I always find my db under the application dir. How can I preserve my db file? Thank you
Erel B4X founder Staff member Licensed User Longtime User Nov 9, 2011 #2 It seems like there are devices that delete DirDefaultExternal folder when reinstalling. Try using a custom folder instead. Upvote 0
It seems like there are devices that delete DirDefaultExternal folder when reinstalling. Try using a custom folder instead.
S slowtime Active Member Licensed User Longtime User Nov 12, 2011 #3 Thank you for speedy reply. Ciao Upvote 0