title: Detecting whether Android device is a phone or a tablet with javascript
body: <p>I have just built a mobile site and want to redirect the traffic from our main site if the user is browsing through a mobile phone.</p>
  
  <p>Currently I am using javascript to pick up the browser useragent and using that to identify if the device is a mobile phone.</p>
  
  <p>The issue I have is with Android devices as I cannot find a distinguishing feature for Android  useragents to decide whether the device is a phone or a tablet, If the user is on a tablet I still want to show them the full site.</p>
  
  <p>Does anyone know of a solution for this?</p>