dsaiztc
6/7/2014 - 10:41 AM

Shedule periodic tasks.

Shedule periodic tasks.

ScheduledExecutorService mScheduledExecutorService = Executors.newScheduledThreadPool(1);;
Future<?> mFuture = mScheduledExecutorService.scheduleAtFixedRate(new Runnable()
{
	public void run()
	{
		// Task to do periodically
	}
}, 0L, updateTime, TimeUnit.SECONDS);