Detect iPad or iPhone or Android in Corona SDK?

By | January 17, 2012

It is very simple to get which device are you running the app in corona SDK.
Take a look at the code snippet.

local device = system.getInfo( "model" )
if (device == "iPad") then
{
         print ("iPad")
}
else
{
        print ("iPhone or Android");
}
end

Leave a Reply

Your email address will not be published. Required fields are marked *