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!!!!
source
share