My app runs great on numerous Android devices, but on a Galaxy 10 tablet (GT-N8013 - v 4.1.2) I have been experiencing a silent crash. The app “settings” scene opens, but all controls are disable / unusable. The scene stays open for ~5 seconds and then closes.
My global exception handler and adb show nothing. The app simply closes and shows the “Unfortunately x has stopped” dialog after it is closed.
After commenting out every single control, I systematically tracked the cause down to one line. Assigning text to a newTextField. I’ve tried hardcoding string and number values and the assignment always causes a crash.
Again, this works on every other device that has been tested. Is there a workaround for this?
[lua]
– AUTO VOL VAL
volValue = native.newTextField( switchLeft + 60, autoVol.y + 50, 65, 40 )
volValue.inputType = “number”
sceneGroup:insert( volValue )
if(autoVol.isOn) then
autoVolText.isVisible = true
volValue.isVisible = true
if (glo.volumeLvl) then
volValue.text = glo.volumeLvl — *** WHERE THE CRASH OCCURS
end
else
autoVolText.isVisible = false
volValue.isVisible = false
end
[/lua]

