How to get gps coordinates every minute in Android?
问题 I want to get my coordinates every minute, even if a user is not moving. So i used requestLocationUpdates with the following parameters: locMgr.requestLocationUpdates( LocationManager.GPS_PROVIDER, 60000, // minTime in ms 0, // minDistance in meters PosljiLokacijo.this); But when i test it on my HTC Hero (2.1 Android) and i am not moving, onLocationChanged() is never called. If i change minDistance to 1, then i get a few updates at start but after that, they come in very unregular intervals.