I am calling
handler.postDelayed(runnable, time);
handler.post(runnable2);
Will the second runnable not get handled until the first message in the queue does, after “time” has passed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. The second runnable will be posted immediately and would execute before the first — depending on the
timeparameter in the first, anyway. If you post the first with a negligible delay fortimeit’s possible it could execute first. I don’t believe there’s any guarantee in place that it wouldn’t.