Quote:
Redirect mobile devices to a dedicated mobile version of your web site
There are several ways you can redirect requests to the mobile version of your web site, using server-side redirects. Most often, this is done by "sniffing" the User Agent string provided by the web browser. To determine whether to serve a mobile version of your site, you 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").
Note: Large screen Android-powered devices that should be served full-size web sites (such as tablets) do not 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.
|
This is right from the Android Developers site.