I'm using method scheduleAtFixedRate in my program (Timer class ). It runs every one second, but sometimes this method becomes really fast ( it's executing 3 - 4 per second ).
However i did some research on web and i found this:
Copied from android developer's page:
With fixed-rate execution, the start time of each successive run of a task is scheduled without regard for when the previous run took place. This may result in a series of bunched-up runs (one launched immediately after another) if delays prevent the timer from starting tasks on time.
I need fixed timer. It should run only once per x time without any fast executions. Is there any alternative to scheduleAtFixedRate method or, i need to be satisfied with this method?