S strupp01 Active Member Licensed User Longtime User Oct 10, 2021 #1 I'm trying to write a program with SQL-DB for an Android 11 mobile phone. However, already when creating a new folder with File.MakeDir there are problems. There is no error message, but the folder is not created. If I create the folder with TotalCommander, I still cannot create a database. On the advice of @DonManfred I refrained from File.DirRootExternal and now tried the new version of the access for Android 11. However, the first time I try to compile, I get the following error message: View attachment 120089 What should that tell me? Which file is missing? Can anyone help? Maybe with a mini program to create an SQL database.
I'm trying to write a program with SQL-DB for an Android 11 mobile phone. However, already when creating a new folder with File.MakeDir there are problems. There is no error message, but the folder is not created. If I create the folder with TotalCommander, I still cannot create a database. On the advice of @DonManfred I refrained from File.DirRootExternal and now tried the new version of the access for Android 11. However, the first time I try to compile, I get the following error message: View attachment 120089 What should that tell me? Which file is missing? Can anyone help? Maybe with a mini program to create an SQL database.
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2021 #2 Choosing the correct folder: Flow chart to help choose folder The error you got is related to a B4XPages project that wasn't packaged properly: https://www.b4x.com/android/forum/t...elated-to-shared-files-folder.124408/#content Upvote 0
Choosing the correct folder: Flow chart to help choose folder The error you got is related to a B4XPages project that wasn't packaged properly: https://www.b4x.com/android/forum/t...elated-to-shared-files-folder.124408/#content
M Mahares Expert Licensed User Longtime User Oct 10, 2021 #3 The safest and trouble free way is using xui.defaultfolder (aka File.DirInternal) Code: Copy Private DBFolder As String Code: Copy File.MakeDir(xui.DefaultFolder, "dictionary") DBFolder = $"${xui.DefaultFolder}/dictionary"$ SQL.Initialize(DBFolder, Filename, True) Upvote 1
The safest and trouble free way is using xui.defaultfolder (aka File.DirInternal) Code: Copy Private DBFolder As String Code: Copy File.MakeDir(xui.DefaultFolder, "dictionary") DBFolder = $"${xui.DefaultFolder}/dictionary"$ SQL.Initialize(DBFolder, Filename, True)