How can I detect what device I am on?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

How can I detect what device I am on?

Post by jnmediaGAd195 » Thu Apr 26, 2012 9:30 pm

Very basic question here. I am writing an app and would like it to run on both the iPhone and the iPad. How do I detect what device I am on? I am assuming that I need to size the screen, buttons, etc. based on the device. Any help is greatly appreciated.

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: How can I detect what device I am on?

Post by Dixie » Thu Apr 26, 2012 9:52 pm

Hi...

Read the iOS release notes... page 41 'Runtime environment querying' and page 35 of the Android release notes... Hardware and system version query support.

be well

Dixie

Post Reply