Android Question Can't connect to Database

JMB

Active Member
Licensed User
Longtime User
Hi there,

I have this code...
B4X:
    If FirstTime Then
        SQL1.Initialize(File.DirAssets,"TestDB.db",False)
    End If

The TestDB.db file is shown in the Files Manager. However, I get this error on running.


#################################################################
Error Code : 1294 (SQLITE_CANTOPEN_ENOENT)
Caused By : Specified directory or database file does not exist.
(unknown error (code 1294): Could not open database)
#################################################################

Can anyone point me in the right direction for how to access files listed in the File Manager? Are they not automatically transferred over? Is there any file size limit on those files?

Thanks.

JMB
 

JMB

Active Member
Licensed User
Longtime User
Oops... just discovered the post about SQLlite files not being able to be used from DirAssets...

Sorry!
 
Upvote 0
Top