I am using handler.postDelayed method to create some delay for some animation stuff. Like this:
Handler h = new Handler();
h.postDelayed(new Runnable() {
@Override
public void run() {
// Start Animation.
}
}, 6000);
Later, How can I get the remaining time until the animation starts?
You can simply save the time in a var when you call post delayed
and then when you need to check the remaining time you can calculate the elapsed time like
So in your case