LocationListener network provider not called

I ran into a really annoying problem. At some point in the program, I need to track the user's position. To do this, I register a listener for all providers available and request updates. This worked really well until I upgraded my phone to Android 4.0. But the same code works fine in older versions.

Now the listener is not called. But only under certain conditions:

  • If I have gps coordinates, this works fine, even if gps coordinates are lost, I also get a network.
  • but if there is no GPS coordinates and no Wi-Fi signal (but Wi-Fi on the phone is turned on), I should be able to get the coordinates using 3G. Here it does not work. If I debug, I can see how the listener registers, but it never gets called.

Please, help!!!!

+3
source share
2 answers

I don’t know if you have passed it . If not, that would be helpful to you.

+1
source

Do you have a sim card in your device? I found this resolved the issue for me.

By the way, I found that after I upgraded my Galaxy Nexus to Android 4.x (in particular, 4.2.2), strange things started with my device. Perhaps there are some bugs in the updates?

0
source

All Articles