It doesn't need internet. Verify that you've asked for the FINE GPS permission (rather than coarse which does need a connection) and i'd also make sure to have a wake lock (a better approach is to user an alarm to query the location periodically) otherwise i doubt onLocationChanged would be called after a short while.
On Sunday, July 7, 2013 2:41:21 AM UTC+3, Gary Blakely wrote: > > I write apps for both Windows Phone in C# and Android in Java. I have > similar apps, on each marketplace, that both use the GPS to track movement > as the phone moves about. When the phone is out moving around, the > internet connectivity, of course, goes in and out. > > Both versions of my app transmit the GPS readings to my cloud server REST > service where they are recorded on to a database. If the app has no > internet connection, it saves the GPS locations on the phone and then, when > the internet connection comes back, it bursts what it has to the cloud > server. This process works great in Windows phone. > > But with Android, when there is no internet connection, my > onLocationChanged event in my LocationListener does not get triggered as > the phone moves about. It's working as though the GPS gets turned off when > there is no internet signal. That makes no sense to me. Is it supposed to > work this way? Why would the GPS need an internet connection to work? > Thanks, > Gary > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

