Android Question Can't connect to Database

JMB

Active Member
Licensed 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
 
Top