- Home /
How to detect if the device is android mobile or tablet
I know how to detect if a device is iOS or Android, but how could we know if it's a tablet or mobile? I have the same doubt for iOS.
What do you believe defines the difference between a tablet and mobile? If it's got a 9" screen but can make calls is it a tablet or phone?
Screen size or density has no bearing. In the link I posted below the author of the article has noticed that one readable difference is that tablets and phones both start with a different default orientation.
Of course you can always detect the presence of the Phone transceiver hardware but you will need to do this through Android API, I believe.
Answer by meat5000 · Jun 26, 2015 at 07:13 PM
http://ralphbarbagallo.com/2012/08/10/detecting-android-tablets-and-phones-in-unity3d/
Maybe this can do something for you.
This is the search it came from.
Answer by Jessespike · Jun 26, 2015 at 07:02 PM
I'm not aware of any function that will directly tell you if a device a tablet or mobile. SystemInfo.deviceType will only tell you if the device is a handheld or not.
Your answer
Follow this Question
Related Questions
upload image to server 0 Answers
Mobile - Check for headphones 0 Answers
Mobile device screen sizes 4 Answers
Show device info such as resolution, OS, GPU, etc... 1 Answer
Changing view based on device 0 Answers