LocationListeners provide some great methods for determining things
like this... onProviderDisabled [so you know its completely off] and
onStatusChanged [which will return one of three status codes]. Check
out the docs, this should be precisely what you need. If GPS is
straight off, onProviderDisabled will fire, and if it is on but cannot
find a fix [say the user is inside a brick building] the
onStatusChanged method will fire after 30 seconds or so of attempting
to get a fix [the duration before this method is fired seems to differ
every run].

-Nick



On Apr 7, 10:00 pm, Farha Ansari <[email protected]> wrote:
> How can I find out that the GPS provider has failed to get location in
> android?
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to