title: HTML5 GeoLocation not working with Android
body: <p>My device is a HTC One X, browser is Chrome. I'm trying to get HTML5 GeoLocation to work in browser however I'm unable to, it works on iOS and desktop however nothing for my Android. Below is my code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /&gt;
      &lt;meta content='width=device-width, initial-scale=1, maximum-scale=1' name='viewport'&gt;
        &lt;title&gt;HTML5 Test&lt;/title&gt;
        &lt;script src='http://cloud.keepiteasy.net/libs/modernizr.custom.89661.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='http://cloud.keepiteasy.net/libs/jquery.js' type='text/javascript'&gt;&lt;/script&gt;
      &lt;/meta&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;script type="text/javascript"&gt;
        $(function() {
          if (Modernizr.geolocation) {
            navigator.geolocation.getCurrentPosition(success, error);
          }
  
          function success(position) {
            var lat = position.coords.latitude;
            var lng = position.coords.longitude;
  
            alert(lat);
            alert(lng);
          }
  
          function error(err) {
            if(err.code == 1) { 
              alert("Error: Access is denied!"); 
            }else if( err.code == 2) { 
              alert("Error: Position is unavailable!"); 
            } 
          }
        });
      &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>UPDATE: I fixed the doctype
  UPDATE: I updated the error function
  UPDATE: On my HTC I am still getting nothing, not even an error. On my Nexus 7 (just tried it), it works fine... WTF, hardware issue? But other GPS based apps work...</p>