I have a bible sql app that I cannot seem to figure out a issue I am having with running the app on smaller devices. On my galaxy note and a friends phone the app works just fine but on my mom's htc inspire the scrollview is blank (no error and looking at the log files the view is populated from the DB just fine) but nothing shows (sorry its kinda hard to explain) attached are 2 screenshots showing the scrollview populated on my note and not populated (or showing) on the emulator (same thing happens on the htc) There are no errors loading the data, I am totally stumped and was hoping someone on here would take a look at my code and see if they can tell what I am doing wrong.
its too big to attach but I am willing to send it to anyone willing try and help me figure out my issue, I have attached 2 screen shots one of my galaxy note and the other of the emulator (same as my htc inspire)
here is the create activity
its too big to attach but I am willing to send it to anyone willing try and help me figure out my issue, I have attached 2 screen shots one of my galaxy note and the other of the emulator (same as my htc inspire)
here is the create activity
B4X:
Sub Activity_Create(firstTime As Boolean)
Dim i As Int
'Activity.Title = "Bible verse lookup"
hasNote = 0
If firstTime Then
If File.Exists(File.DirDefaultExternal,"bibles.sqlite") = False Then
File.Copy(File.DirAssets,"bibles.sqlite",File.DirDefaultExternal,"bibles.sqlite")
Log("Copying DB to device .....")
Else
Log("DB already exists on phone .....")
End If
End If
SQL.Initialize(File.DirDefaultExternal, "bibles.sqlite", True)
Log("DB initialized .....")
Activity.LoadLayout("mainscreen")
ScrollView1.Initialize(0)
ScrollView2.Initialize(0)
ScrollView3.Initialize(0)
ScrollView1.Panel.Color = Colors.Black
ScrollView2.Panel.Color = Colors.Black
ScrollView3.Panel.Color = Colors.Black
Table = ScrollView1.Panel
Table.Color = LineColor
' left,top,width,height
Activity.AddView(ScrollView1, 0%x, 7%y, 100%x, 34%y)
Log("addview scrollview1 .....")
Table2 = ScrollView2.Panel
Table2.Color = LineColor
Activity.AddView(ScrollView2, 1%x, 44%y, 18%x,25%y)
Log("addview scrollview2 .....")
Table3 = ScrollView3.Panel
Table3.Color = LineColor
Activity.AddView(ScrollView3, 80%x, 44%y, 18%x,25%y)
Log("addview scrollview3 .....")
ColumnWidth(0) = 1
For i=0 To NumberOfColumns-1
ColumnWidth_1(i) = ColumnWidth(i)-ColLineWidth
Next
SelectedRow = -1
SelectedItems.Initialize
whichScrollView = 1
ReadSQLTable
SelectedRow = -1
SelectedItems.Initialize
End Sub
Attachments
Last edited: