I\'m trying to get this bit of code to work:
Testing GPS in Android
The problem is, when I run the test, onLocationChanged() is never called:
I ran into a similar problem. Regardless of what I tried, I could never get onLocationChanged() to be automatically called. Eventually, I gave up and created a method that both set the location with setTestProviderLocation() and directly called onLocationChanged(). It's not a perfect solution, but it worked for my needs.