Android Question SQL-DB under Android 11 ??

strupp01

Active Member
Licensed User
Longtime User
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.
 

Mahares

Expert
Licensed User
Longtime User
The safest and trouble free way is using xui.defaultfolder (aka File.DirInternal)
B4X:
Private DBFolder As String
B4X:
File.MakeDir(xui.DefaultFolder, "dictionary")
    DBFolder = $"${xui.DefaultFolder}/dictionary"$
    SQL.Initialize(DBFolder, Filename, True)
 
Upvote 1
Top