Android: trying to add a wait in between two animations, getting Object not locked by thread before wait() error
问题 I'm new to Android and Java programming. I created an app for a Coursera class. It has two animations that occur repeatedly. I want them to animate like a drum beat - 1,2,1,2,1,2,1,2,1,2. I wrote two recursive methods that run until the user clicks a Reset button. I tried adding a wait in between the method calls so the second would kick off right after the first one. This is the part of my code that has the wait. mHandler = new Handler(); // .os package class when importing mLeftfoot =