InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Android development tutorials

  • Android - Show top processes using adb
  • Android studio keyboard shortcuts
  • Disable sleep during android usb debugging
  • Download apk using AirDroid
  • Enable usb debugging
  • Exerciser monkey tutorial
  • Transfer android apk using adb
  • Using Google analytics SDK v2 for android app real time tracking
  • View Desktop Site
  • adb tutorial
 
  • Home
  • > Tutorials
  • > Android Development

How to view desktop site from android mobile

By admin on Nov 25, 2015

Sometime we need to view desktop version of a web site from Android mobile phone. This may be useful to see how Desktop site looks. It can also be useful to access some features only present on Desktop site.

User agent and desktop version

Any web server looks at User Agent http request header to decide if it want to serve a mobile specific page. Here is how the header looks like for Chrome on Mac Desktop:

User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Steps to request desktop site from android

These are steps to request Desktop site from Android mobile:

  1. Open Chrome on you Android mobile and visit https://us.yahoo.com/. It will open mobile version of the site as shown below:
    yahoo-from-android-default-request
  2. Click on setting icon on top right. Other option is to select Android settings button if it is present in your mobile. Select “Request Desktop site” checkbox as highlighted below. By default is it not selected.
    android-chrome-menu-request-desktop-site-highlighted
  3. Once the “Request Desktop site” checkbox is selected, the mobile will fetch the Desktop version of Yahoo website. Here is how it looks:
    yahoo-from-android-default-request

Note that this settings is per Chrome tab and when Chrome is hard restarted, it comes back to default value.

User agent when requesting a Desktop site

The user agents being sent from Lenovo Vibe X2 mobile when request a site in regular mode and in Desktop mode are:

User agents for Lenovo Vibe X2
User-Agent header
Default mobile site Mozilla/5.0 (Linux; Android 5.0; Lenovo X2-AP Build/LRX21M) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
Desktop site Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Safari/537.36

Suggested posts:

  1. Chrome – copy any request as cURL including headers
  2. Cross browser site testing – what browsers to cover
  3. Why and how to log Content-Type in apache access log
  4. How to monitor 404 pages on your site
  5. How to use exerciser monkey tool for android stress testing
  6. How to disable dropbox photo auto upload on mobile and desktop
  7. How to download apk from mobile using AirDroid
  8. Mac – how to change desktop icons size
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2022 InfoHeap.

Powered by WordPress