1

Can someone tell me, what is the best way to deal with situations when there is no GPS signal or from some reason fix cannot be acquired?

The thing is that I thought that it would be sufficient just to use onStatusChanged method from LocationListener, but when there is no GPS signal it never calls this method. Why is that?

Thanks

Rabas
  • 573
  • 1
  • 6
  • 13

1 Answers1

2

Take a look at my solution What is the simplest and most robust way to get the user's current location on Android?. If there's no GPS fix it will use update from Network provider. If there are no updates at all it will us last known value.

Community
  • 1
  • 1
Fedor
  • 43,261
  • 10
  • 79
  • 89