title: Geolocation error in android
body: <p>here is the code below</p>
  
  <pre><code>if (navigator.geolocation) {
          alert("ok");
  
         // var options = { timeout: 0, maximumAge: 600000 };
          navigator.geolocation.watchPosition(onSuccess, onError);
  
      }
  function onSuccess(position) {
      alert("success");
      lat = position.coords.latitude;
      lng = position.coords.longitude;
  
  }
  function onError(error) {
      alert('code: ' + error.code + '\n' +
             'message: ' + error.message + '\n');
  }
  </code></pre>
  
  <p>It works in all browsers , iphone and WindowsPhone. But in andorid in gives me error code :3 timeout expired error.</p>
  
  <p>I enabled gps, wi-fi also in the settings menu--> location services -->location and Google Search,
  In the browser menu settings--> privacy and settings enable location is checked.</p>
  
  <p>What is the problem , any ideas? i really stuck in.</p>