On Sat, Dec 29, 2012 at 6:27 PM, Jake Colman <col...@ppllc.com> wrote:

> Under what circumstances will getBestProvider return NULL
>

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/location/LocationManager.java#LocationManager.getBestProvider%28android.location.Criteria%2Cboolean%29


> and what is the best way to handle it?
>

Check for null?


> What does it mean if there is no "best"?
>

Apparently that there is none at all.


> Doesn't Android automatically relax my criteria until it finds a match?
>

Apparently, except for cost, according to the docs.


> And why would a device would not have a NETWORK provider?
>

User disabled it?
Device is in AirPlane mode?
Device just doesn't have that radio?

(I'm just guessing, I don't really know).

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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

Reply via email to