Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android tablet detect #2

Open
samkuhn opened this issue Dec 23, 2015 · 1 comment
Open

android tablet detect #2

samkuhn opened this issue Dec 23, 2015 · 1 comment

Comments

@samkuhn
Copy link

samkuhn commented Dec 23, 2015

Is there any way to distinguish between a phone or tablet on android?

@amoilanen
Copy link
Owner

Looks like there is no general way to do this based on the user agent string http://stackoverflow.com/questions/7173642/detecting-whether-android-device-is-a-phone-or-a-tablet-with-javascript

Also the line between a "phone" and "tablet" is quite blurry and subjective http://stackoverflow.com/questions/5832368/tablet-or-phone-android, one approach can be to try to look at the screen size.

I will try to investigate further whether something can still be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants