Skip to content

Commit 2458f2a

Browse files
committed
cherrypick Change-Id: I60c74919ab3df359f47e5052bcc1469318a5b821
add notice about large screen devices and the "mobile" string in user agent Change-Id: I2e6a3f2c4fced2cf06bb996c1135c042682cdf8f
1 parent 0c1a4d3 commit 2458f2a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/html/guide/webapps/best-practices.jd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ string provided by the web browser. To determine whether to serve a mobile versi
2525
should simply look for the "mobile" string in the User Agent, which matches a wide variety of mobile
2626
devices. If necessary, you can also identify the specific operating system in the User Agent string
2727
(such as "Android 2.1").</p>
28+
<p class="note"><strong>Note:</strong> Large screen Android-powered devices that should be served
29+
full-size web sites (such as tablets) do <em>not</em> include the "mobile" string in the user agent,
30+
while the rest of the user agent string is mostly the same. As such, it's important that you deliver
31+
the mobile version of your web site based on whether the "mobile" string exists in the user
32+
agent.</p>
2833
</li>
2934

3035

0 commit comments

Comments
 (0)