What is the meaning of removeCallbacks(Runnable r) in Handler in Android -


I would like to know what exactly is the callback (runnable r) to be removed in the handler. I went through it and it only removes any pending posts of "runnable r in message queue".

Now my question is that my message is already starting to be processed by my handler, I call delete callback , does it send me half my message must stop? Or even if I send a message to removeclallbacks which is already processing by my handler (when I call post (runnabal) ) will be performed?

Runnabel should be executed only with the message queue, so if your message is first If the same is starting processing then it should not be effective, by calling removeClallbacks , it should have already been removed, so this resource will continue.

Comments