>>>>> "T" == TreKing  <[email protected]> writes:

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

   T> Check for null?

I'm already doing that!  If I get NULL I hard-code a request to the
NETWORK provider.  Under certain circumstances I'm crashing my app since
I assumed (stupidly) that when "best" returns NULL I can still access
NETWORK.  I guess when "best" returns NULL it really means there ain't
nothing available to satisfy my request.

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

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

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

That was really the core of my question.  If "best" returns NULL I have
to assume that I cannot determine the location - and then do something
accordingly.

Thanks.

-- 
Jake Colman -- Android Tinkerer

-- 
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

Reply via email to