kurarisu_kitsune New Member Jan 14, 2017 #1 Hi. I am a newbie and I would really appreciate your help. I've read in other threads (such as in this thread) that I should just copy and paste my database file from the assets folder to the dirInternal folder. But how can i do that? I cannot see the folder just as what the b4a pdf guide said. So what I should do? THANK YOU SO MUCH! My codes btw: If File.Exists(File.DirInternal,"users_information.db") = False Then File.Copy(File.DirAssets,"users_information.db",File.DirInternal,"users_information.db") End If If sql.IsInitialized = False Then sql.Initialize(File.DirInternal, "users_information.db", False) End If
Hi. I am a newbie and I would really appreciate your help. I've read in other threads (such as in this thread) that I should just copy and paste my database file from the assets folder to the dirInternal folder. But how can i do that? I cannot see the folder just as what the b4a pdf guide said. So what I should do? THANK YOU SO MUCH! My codes btw: If File.Exists(File.DirInternal,"users_information.db") = False Then File.Copy(File.DirAssets,"users_information.db",File.DirInternal,"users_information.db") End If If sql.IsInitialized = False Then sql.Initialize(File.DirInternal, "users_information.db", False) End If
Erel B4X founder Staff member Licensed User Longtime User Jan 15, 2017 #2 Use DBUtils.CopyDBFromAssets: https://www.b4x.com/android/forum/threads/dbutils-android-databases-are-now-simple.8475/#content Upvote 0
Use DBUtils.CopyDBFromAssets: https://www.b4x.com/android/forum/threads/dbutils-android-databases-are-now-simple.8475/#content