I would like to know if it's possible to increment seconds, hours, or minutes while the timer is running. Currently I have implemented this answer in my apps feedAdapter. I also used this kind of incremental function in CountDownTimer and it really worked out!, but only when you pause it and then resume it again.(Let's not get to it). All the handlers and functions are in this links's answer!
I have 2 button in the adapter: 1: Start's the timer 2: I want this button to increment seconds or minutes etc. Would appreciate any help that gets through!
How to handle multiple countdown timers in ListView?
public void incrementExpirationTime () {
int defaultIncrementValue = 10000; //lets say ten seconds (this can also be a long data)
long productExpiryTime = getProductExpiryTime();
productExpiryTime+=defaultIncrementValue;
}
I also made this private long productExpiryTime;
an instance but that also didn't help.