Please help i have used the content Chooser to get to the gallery now my problem is getting that photo then upload it to my SQLite Database please help
Blelow is my code for the Registered Users
B4X:
Dim chooser As ContentChooser
If chooser.IsInitialized = False Then
chooser.Initialize("chooser")
End If
chooser.show("image/*", "Choose image")
B4X:
cursor1 = SQL1.ExecQuery("SELECT ID FROM Register")
If cursor1.RowCount > 0 Then
For i = 0 To cursor1.RowCount - 1
cursor1.Position = i
Dim NewID As Int
NewID = cursor1.GetInt("ID")
Next
End If
NewID = NewID +1 '
SQL1.ExecNonQuery("INSERT INTO Register VALUES('" & CCode.Text & "','" & Phone.Text & "','" & Emails.Text & "','" & NewID & "')")
'SQL1.ExecNonQuery("INSERT INTO Register VALUES('" & CCode.Text & "','" & Phone.Text & "','" & Emails.Text & "')")
Msgbox("Registration Completed Successfully","SMIS")
'End If