Detect if android

Hi,

I have been using

if system.getInfo("platformName") == "Android" then  

to detect if the system is android, but this doesn’t work in the simulator with android skins. This is leading to severe inconsistencies between device/simulator builds for android.

I was wondering if there was another way of doing it that works on both the simulator and device?

Thanks

Max [import]uid: 24641 topic_id: 30761 reply_id: 330761[/import]

just print it to the console and check what it says

print (" Platform: " .. system.getInfo("platformName")) print (" Model Info: "..system.getInfo("model")) [import]uid: 70635 topic_id: 30761 reply_id: 123186[/import]

just print it to the console and check what it says

print (" Platform: " .. system.getInfo("platformName")) print (" Model Info: "..system.getInfo("model")) [import]uid: 70635 topic_id: 30761 reply_id: 123186[/import]