Handler/Runnable delays producing events that are out of sync sometimes
When trying to learn how to create a delay I researched and found the dominant answer to be to use Handler/Runnable/postDelayed. Handler handler=new Handler(); final Runnable r = new Runnable() { public void run() { delayedMethod(); } }; handler.postDelayed(r, 1000); That worked ok for a while, but I've added a few more things going on and now they are sometimes happening in the wrong order. This set of events: paintScreen1() ... delayedPaintScreen2() ... paintScreen3() is screwing up (sometimes) and doing this: paintScreen1() ... paintScreen3() ... delayedPaintScreen2() (runs last and gets