Hi , I have tried various things with this, but cannot retrieve data from the created DB for some reason?
I have even taken the database from the phone and tried the same table on my computer running the same simple query and the data is there using SQL Lite browser! I did this a few times as well to make sure.
Any ideas anyone?
Malky
I have even taken the database from the phone and tried the same table on my computer running the same simple query and the data is there using SQL Lite browser! I did this a few times as well to make sure.
Any ideas anyone?
Malky
B4X:
Sub DisplayLangs
Dim Cursor1 As Cursor
Cursor1 = SQL1.ExecQuery("selec1 * from wp_langs order by lang")
Log("count = " & Cursor1.Rowcount)
For i=0 To Cursor1.RowCount - 1
Cursor1.Position = i
Dim job As HttpJob
Log(Cursor1.GetString("lang"))
imagename = Cursor1.Getstring("flag")
job.Initialize(imagename, Me)
job.Download(URL & "images/prop_apps/thumbs/langs/" & imagename)
Log(URL & "images/prop_apps/thumbs/langs/" & imagename & " - " & job.Success)
bmp = LoadBitmap(SD_PATH, imagename)
LangView.AddTwoLinesAndBitmap2(Cursor1.Getstring("lang"),Cursor1.Getstring("abbrev"),bmp,Cursor1.Getstring("abbrev"))
Next
Cursor1.Close
End Sub