I’m having a bit of trouble understanding this chunk of code. The result is system.getInfo is always “iPhone” even when I’m using an Android device as the simulator and the “model” value equals “droid” for instance. Does anyone know why that would be the case?
–Setup the back button
if system.getInfo(“model”) == “iPad” or “iPhone” then
print(“iPad or iPhone”)
backBtn = ui.newButton{
default = “backButton.png”,
over = “backButton_over.png”,
onRelease = backBtnRelease
}
else
print(“Not iOS”)
backBtn = ui.newButton{
default = “androidbackButton_over.png”,
over = “androidbackButton.png”,
onRelease = backBtnRelease
}
end
[import]uid: 150151 topic_id: 33513 reply_id: 333513[/import]