Android Location API: Get Provider Status
<p>What is the best way in Android to get a location provider's status? When registering a LocationListener for location updates, the <code>onStatusChanged(String provider, int status, Bundle extras)</code> callback will be called whenever the status is changed. However, I didn't find a way for getting the current status (<code>AVAILABLE</code>, <code>OUT_OF_SERVICE</code>, <code>TEMPORARILY_UNAVAILABLE</code>) without registering to location updates. The <code>isProviderEnabled</code> method just indicates if the provider is generally turned on or not (in the device's settings), so might return <code>true</code> although the provider is out of service... Is there another way for doing this?</p>

<p>Another question: is it possible to listen for status updates without registering for location updates? I want to listen on a specific provider for locations, but at the same time check if others get available. My current workaround is to set the minimum time and distance to a very high value, but I wonder if there's a better solution...</p>

<p>Thank you for any hints!</p>

<p>Btw: if possible, the solutions should work with Android 1.1</p>
