D danchovasilev Member Yesterday at 5:03 PM #1 I made a small application that works with a SQLite database, but when I compile it, it gives me an error - it cannot find the path to the database using SQL.InitializeSQLite(File.DirApp, "dk6.db", True) please help
I made a small application that works with a SQLite database, but when I compile it, it gives me an error - it cannot find the path to the database using SQL.InitializeSQLite(File.DirApp, "dk6.db", True) please help
Erel B4X founder Staff member Licensed User Longtime User Today at 5:52 AM #2 With standalone packages, File.DirApp is the build\bin folder in Windows. This will be a read-only folder if you are creating an installer. It is recommended to use XUI.DefaultFolder (https://www.b4x.com/android/forum/threads/flow-chart-to-help-choose-folder.132787/#content). And in B4J you must first call XUI.SetDataFolder when the app starts. Upvote 0
With standalone packages, File.DirApp is the build\bin folder in Windows. This will be a read-only folder if you are creating an installer. It is recommended to use XUI.DefaultFolder (https://www.b4x.com/android/forum/threads/flow-chart-to-help-choose-folder.132787/#content). And in B4J you must first call XUI.SetDataFolder when the app starts.