how can i Create looper in timer
- by Yogesh Ude
private static final long UPDATE_INTERVAL = 1* 60 * 1000;
private Timer timer = new Timer();
public int onStartCommand(Intent intent, int flags, int startId)
{
timer.scheduleAtFixedRate(new TimerTask()
{
mLocationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER, LOCATION_INTERVAL, LOCATION_DISTANCE,
mLocationListeners[0]);
}, 0, UPDATE_INTERVAL);
return START_STICKY;
}