# Android mobile device detection is too broad

**URL:** <https://meta.discourse.org/t/android-mobile-device-detection-is-too-broad/41349>\
**Category:** Feature\
**Created:** [March 21, 2016, 3:59am UTC](https://meta.discourse.org/t/android-mobile-device-detection-is-too-broad/41349 "2016-03-21T03:59:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [March 21, 2016, 4:08am UTC](https://meta.discourse.org/t/android-mobile-device-detection-is-too-broad/41349/2 "2016-03-21T04:08:07Z")

</div>

According to:

> <https://stackoverflow.com/questions/5341637/how-do-detect-android-tablets-in-general-useragent/5344382#5344382>

> Mobile Android has “Mobile” string in the User-Agent header.

Adding `SM-T` into the user agent and `GT-P` makes me uneasy, I wonder if there are ANY examples in the wild of Android Mobile devices that don’t report the word `Mobile` in the user agent string.

Also, this is the recommendation by Google

[https://webmasters.googleblog.com/2011/03/mo-better-to-also-detect-mobile-user.html](https://webmasters.googleblog.com/2011/03/mo-better-to-also-detect-mobile-user.html)

> As a solution for mobile sites, our Android engineers recommend to specifically detect “mobile” in the User-Agent string as well as “android.”

To me the big question is, are there more 7’’ Android tablet (that are not ideal on the desktop theme) vs 9’'+ ones.

---

_[View the full topic](https://meta.discourse.org/t/android-mobile-device-detection-is-too-broad/41349)._
