Android Question SQL.Initialize in a subdirectory

Eric H

Active Member
Licensed User
Longtime User
The user's guide says you can create a database inside a subdirectory using this code:
B4X:
'With DirRootExternal you can also add a subdirectory. For example:
DirRootExternal & "/MyDatabase"."Database"
I am not understanding what this saying.

I tried using this and the log blew up:
B4X:
SQL1.Initialize(File.DirRootExternal & "/ListDatabase","data.db", True)

I am trying to create a database (data.db) inside the directory (File.DirRootExternal/ListDatabase). What am I doing wrong?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…