I've got a strange problem and have spent to many minutes now trying to figure this out. for my NFC Checkin app in the Android Market, I am accessing the location of the user to do a Foursquare search.

So, here's roughly what I do (similar code has worked before - but now I am on a a Galaxy Nexus and still on Android 4.0.2):

Problem: I simply get no location updates. I just hacked around and changed the code from a direct call to the NetworkProvider to the criteria-based search for a provider, but it still won't work. Anyone?

2 Answers
2

If you are hitting your first if condition every time you will not be calling requestLocationUpdates. This is what registers your listener and causes you to get location updates. Make sure to register for updates in both methods or just extract it so it gets called regardless of which condition is met