title: Android check GPS availability on device
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2584867/programmatically-find-device-support-gps-or-not">Programmatically find device support GPS or not?</a>  </p>
  </blockquote>
  
  
  
  <p>How can I check, is GPS available on the device?</p>
  
  <p>When I try to use the next code</p>
  
  <pre><code>PackageManager pm = context.getPackageManager();
  boolean hasGps = pm.hasSystemFeature(PackageManager.FEATURE_LOCATION);
  
  if (hasGps) {
      Log.d("TAG", "HAS GPS");
  } else {
      Log.d("TAG", "HAS NOT GPS");
  }
  </code></pre>
  
  <p>I always get HAS GPS, but my Archos 101IT has no GPS module. Is there a way to check hardware GPS availablity?</p>