Android Phone Or Android Tablet Detection By Http Headers
Is there a way to detect whether user is accessing your website from android powered tablet or phone on the server side? I don't own any android devices, so it's not possible for m
Solution 1:
They mentioned this on the developer blog when tablets first came out:
http://android-developers.blogspot.com/2010/12/android-browser-user-agent-issues.html
The only difference is that "Mobile" is removed from the user agent.
Edit: These are the user agents for the Galaxy Tab and Flyer
Mozilla/5.0 (Linux; U; Android 3.1; en-us; GT-P7510 Build/HMJ37) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
Mozilla/5.0 (Linux; U; Android 3.2.1; en-gb; HTC Flyer P510e Build/HTK75C) AppleWebKit/534.13 (KHTML, like Gecko) Version/4.0 Safari/534.13
Solution 2:
WURFL should do what you want.
Solution 3:
If you don't want to load the whole device db but still want more reliable matching, WURFL has a cloud product now (and it has a free offering that may be suitable for your needs):
Post a Comment for "Android Phone Or Android Tablet Detection By Http Headers"