Have you tried using the timer? Set interval to 1000 (that is 1000 milliseconds=1 second ) and do your stuff when the onTImer event kicks in..