OSDN Git Service

cherrypick Change-Id: I60c74919ab3df359f47e5052bcc1469318a5b821
authorScott Main <smain@google.com>
Wed, 2 Feb 2011 19:24:56 +0000 (11:24 -0800)
committerScott Main <smain@google.com>
Wed, 2 Feb 2011 23:40:47 +0000 (15:40 -0800)
add notice about large screen devices and the "mobile" string in user agent

Change-Id: I2e6a3f2c4fced2cf06bb996c1135c042682cdf8f

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

index 4e9ae81..1362990 100644 (file)
@@ -25,6 +25,11 @@ string provided by the web browser. To determine whether to serve a mobile versi
 should simply look for the "mobile" string in the User Agent, which matches a wide variety of mobile
 devices. If necessary, you can also identify the specific operating system in the User Agent string
 (such as "Android 2.1").</p>
+  <p class="note"><strong>Note:</strong> Large screen Android-powered devices that should be served
+full-size web sites (such as tablets) do <em>not</em> include the "mobile" string in the user agent,
+while the rest of the user agent string is mostly the same. As such, it's important that you deliver
+the mobile version of your web site based on whether the "mobile" string exists in the user
+agent.</p>
 </li>