Working on an app where I am inserting a title into the scrollview and also pulling a large text field from a SQLite data base and inserting that into the scrollview as well. It works correctly in the simulator, but when I load it onto my Droid X I get the title, but the record from the SQLite doesn’t show. You can tell the scroll view is working because the title scrolls like it is supposed to. The scrollview seems to also adjust the scroll height, like it is pulling the data correctly from the database. I have seen posts where you are unable to insert native objects into scrollview, but I don’t understand why label is showing the data is not. Also have seen where scrollview doesn’t work on Android, but it appears to working. The following code is also part of storyboard as well. I am really being thrown, by the fact that is works correctly in the simulator, but not on the device.
local dataTitle = display.newText("Show "…numVariable, display.contentWidth/2, display.statusBarHeight*2, native.systemFont, fSize*2)
dataTitle.anchorX = .5
scrollView:insert(dataTitle)
local count = 0
local rowY = tTop
local output = “data3”
local sql = “SELECT * from dataBase WHERE data2 = ‘01’”
for row in db:nrows(sql) do
if row.data1 == nil then
print(" NO data FOUND ")
end
count = count +1
local dbText = row.data1
local t = display.newText(dbText, tTab, tTop + ((fSize * 1.25) + (fSize * 4.5 * count)), tWidth, 0, native.systemFont, fSize)
t:setFillColor(255,255,255)
t.anchorX = 0
t.anchorY = 0
scrollView:insert(t)
end
Thanks for the help.