[android-developers] Re: Cannot Retrieve Latitude and Longitude without Internet Connection

2009-05-14 Thread Eddy Leo

Thanks for the reply..

Now I am clear. thanks

On May 13, 11:40 am, ellipsoidmob...@googlemail.com
ellipsoidmob...@googlemail.com wrote:
 I believe the NETWORK_PROVIDER does require Internet access, because
 it sends details about cell towers (and possibly wifi hotspots) within
 range to a server and gets an approximate lat/long in return. In other
 words, Android does not contain internally a complete database of the
 locations of all of the cell towers in the world.

 I think it should work with any Internet connection - e.g. 3G or GPRS
 should work as well as WiFi
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Cant get Latitude and Longitude without Internet Connection

2009-05-12 Thread Eddy Leo

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



[android-developers] Cannot Retrieve Latitude and Longitude without Internet Connection

2009-05-12 Thread Eddy Leo

Hi all,

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

So i create an application that only display the Toast once i
request it to. using the LocationManager.NETWORK_PROVIDER, instead of
gps.

And I try it on my G1.. I found out that if the G1 is connected to my
WiFi, i can get the coordinate of my position, without any problem..
once i turn off the WiFi of the phone. 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

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