http://steve.odyfamily.com/?p=12
[code]
threadPoolExecutor = new ScheduledThreadPoolExecutor(1);
threadPoolExecutor.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
loadData();
}
}, 0, 1, TimeUnit.MINUTES);
[/code]
[code]
t = new Timer();
t.schedule(new TimerTask() {
@Override
public void run() {
loadData();
}
}, 0, 60*1000);
[/code]