I\'m supposed to update the listener every 5 seconds. But it doesn\'t. What could be wrong with my code?
Thanks a lot for any help!
package com.example.a
As stated by David Olsson, MINIMUM_TIME_BETWEEN_UPDATES only prevents the listener to be requested too often. If you want to regularly requestLocationUpdates, you should use Timer and TimerTask and have requestLocationUpdates run once every 5 seconds
schedule(TimerTask task, long delay, long period)
Schedules the specified task for repeated fixed-delay execution, beginning after the specified delay.