Re: Determine if device is a tablet

2018-08-15 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > Metrics. I want to allow landcape orientation on tablets but only > portrait for phones. > > Phil suggested getting device info, but mobileBuildInfo doesn't return > anything better than "the machine." The server idea doesn't return > specific enough info either if it isn'

Re: Determine if device is a tablet

2018-08-15 Thread J. Landman Gay via use-livecode
You're right, I should have said "screen size" rather than "tablet" since I'm concerned with metrics. Terry's ratio cut-off of about 1.4 or so could work. The new iPhone X has a ratio just over 2.0. I wonder if the text would be too small to read comfortably there. On 8/15/18 7:23 AM, ha...@ex

Re: Determine if device is a tablet

2018-08-15 Thread Håkan Liljegren via use-livecode
I think the idea is that if you have enough space for a viable landscape representation I think you should support it. The line between phone and tablet is very blurry and according to the rumours even Apple will start to support landscape multi-column apps on the new phones. Eg. : https://gadg

Re: Determine if device is a tablet

2018-08-15 Thread Terry Judd via use-livecode
So, iPhones (5 and above) have an aspect ratio of something like 1.78, versus 1.33 for an iPad. Don't know what sort of range you are likely to find with Android devices but perhaps using a value of below 1.4-1.5 to indicate the device is a tablet would work for the majority? Terry... On 15/0

Re: Determine if device is a tablet

2018-08-14 Thread J. Landman Gay via use-livecode
On 8/14/18 11:13 PM, Richard Gaskin via use-livecode wrote: J. Landman Gay wrote: > I need to determine whether the current mobile device is a tablet or a > phone. On iOS I can use "the machine" but on Android it only provides > the manufacturer's name. > > Does anyone know a way to do that

Re: Determine if device is a tablet

2018-08-14 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: > I need to determine whether the current mobile device is a tablet or a > phone. On iOS I can use "the machine" but on Android it only provides > the manufacturer's name. > > Does anyone know a way to do that? For screen metrics or device capabilities? -- Richard Gaskin

Re: Determine if device is a tablet

2018-08-14 Thread Monte Goulding via use-livecode
On 15/08/2018 00:15, J. Landman Gay via use-livecode wrote: > I need to determine whether the current mobile device is a tablet or a phone. > On iOS I can use "the machine" but on Android it only provides the > manufacturer's name. > > Does anyone know a way to do that? Looks like there’s no ac

Re: Determine if device is a tablet

2018-08-14 Thread Alex Tweedly via use-livecode
What's the difference between a tablet and a phone ? Is it the existence of a SIM card ? But if I have an iPhone, but no SIM in it - is it then a tablet ? Is it the size, or the number of pixels, or the ratio ? or what ? :-) Alex. P.S. and how different will the answer be in a year's time?

Re: Determine if device is a tablet

2018-08-14 Thread Phil Davis via use-livecode
Hi Jacque, One idea: If your app can reach out to a LC page on a server, that page could return $_SERVER["HTTP_USER_AGENT"] which in many cases tells something about the kind of device that connected. For example: An old iPad: Mozilla/5.0 (iPad;CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1 (K

Re: Determine if device is a tablet

2018-08-14 Thread Bob Sneidar via use-livecode
Does any other device do that? If not, it's just process of elimination. On my Apple laptop I get MacBookPro11,4. On my Windows VM I get x86. I cannot test against Linux, but I'm sure it's something similar. Likely all apples begin with Mac. There is also the platform. Bob S > On Aug 14, 201

Re: Determine if device is a tablet

2018-08-14 Thread Terry Judd via use-livecode
Can you do it based on the aspect ratio of the screen? I wouldn't have thought that there were many phones that were as 'squat' as a typical tablet. Terry... On 15/08/2018 9:16 am, "use-livecode on behalf of J. Landman Gay via use-livecode" wrote: I need to determine whether the current