Incrementing Int To Create A Hashmap
I'm just updating my list view by getting data with the help of JSON, however I want to do this every 5 seconds, by incrementing a counter, meaning; when the counter>=5 after it
Solution 1:
Seems you need not to put any if condition in TimerTask. If you want to start the timer after 5sec and next request every 5sec. than make
int delay = 5000; // delay for 5 sec.int period = 5000; // repeat after every 5 sec.
In case you want to start the task immediately than reduce the delay to its minimum.
Give a try hope it will work.
Post a Comment for "Incrementing Int To Create A Hashmap"