title: How can I monitor the status of the GPS adapter using Android SDK?
body: <p>I need to have my app monitor whether the GPS adapter is anabled or disabled. I don't care about the actual GPS functionality running at the monemt or not -- I need the status of the GPS adapter.</p>
  
  <p>I can manually do it by calling:</p>
  
  <pre><code>String providers = Settings.Secure.getString(getContentResolver(),
          Settings.Secure.LOCATION_PROVIDERS_ALLOWED);
  </code></pre>
  
  <p>If "gps" is listed, then it's active, otherwise it's not. But I can't find any documentation on getting notified when GPS is enabled or disabled by the user. I did try to use addGpsStatusListener in LocationManager, but that only notifies when the actual GPS fix is being acquired (like if the Maps app is being used).</p>
  
  <p>Any ideas?</p>