Android Question sqlite

Hamied Abou Hulaikah

Well-Known Member
Licensed User
Longtime User
my database is already exist in my phone
when i want to access and initialize it gives me error could not open database
code is :
B4X:
Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then
    
        If File.Exists(File.DirAssets, "d77.db") = True Then
            SQL1.Initialize(File.DirAssets, "d77.db", False)
    
Msgbox("connected","")
         
        Else
        Msgbox("NOT","")
        End If
    End If
    Activity.LoadLayout("Main")

End Sub
and error is
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…