Hi all,

I am having problem in getting the latitude and longitude on my
phone..

Case:
i created an application that only display the "Toast" that display
the latitude and longitude once i
request it to. using the LocationManager.NETWORK_PROVIDER, instead of
gps.

And when I try it on my G1, everything was fine when i am connected to
the internet.
but when i disconnect G1 from WiFi, the application cant get the
latitude and longitude anymore..
 The onLocationChanged() is not
triggered anymore, instead, onStatusChanged() is triggered.. And I get
TEMPORARILY_UNAVAILABLE error..

So what i want to ask is :Is internet connection required to retrieve
the coordinate ONLY?

Note that I dont use any maps or visual representation of my location.
All I do was to get the latitude and longitude.

Or do i need to add any extra stuff?

As for the permission these are the ones I used, even though I doubt
that the INTERNET permission is needed..

android.permission.ACCESS_FINE_LOCATION
android.permission.ACCESS_COARSE_LOCATION
android.permission.INTERNET

Anyone has any thought? Thanks

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