As another side note, if you want to preemptively prevent force close
messages, the best thing to do is test everything for a valid data
type before using it. Many unexpected conditions can be caught and
handled if you do this, failure to test everything that may have an
unexpected value will at so
Aha! Thank you!
As soon as I read your response it hit me - I am testing on the
emulator, which will always give me a null provider! Which means no
matter what I do I am gonna get a null which means I can't get a
latitude... Which shows that I have had WAY too much time off of
programming between
You're not testing to see if you get a null provider, also I'm not
sure asking to use POWER_LOW and ACCURACY_FINE will work as GPS uses a
lot of power.
I suggest dropping the POWER_LOW and testing provider for null.
Also, unless you need a very accurate fix, the wireless network
location service
3 matches
Mail list logo