InfoHeap
Tech
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
  • Find top processes by memory/cpu on Android using Adb
  • Find used ports by an app on Android using Adb
  • Install Android 8 on Pixel 2
  • Root Android pixel 2 using Magisk and boot image patching
  • 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. Mac – how to change desktop icons size
  2. svn – how to undo last commit
  3. Run Internet Explorer (IE) on Mac using VirtualBox and ievms script
  4. How to download apk from mobile using AirDroid
  5. How to customize wordpress image alt tag
  6. How to view your WiFi password on Mac
  7. adb – android debug bridge – quick tutorial
  8. curl – some handy commands
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Android Development, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | 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 | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress