Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have use a timer in my app it sends some details to server every 60 seconds,
now i want send details to server every 15 seconds after button click.
how to change timer duration during app running time in android.
Posted

1 solution

you can't change the running timer duration, cancel it and create a new TimerTask instance with new period.
refer : Android how to change a TimerTask interval after shcedule?[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900