I was making an activity with a lot of buttons.
I want to make the buttons flash when the other button is clicked.
For example, there is four buttons. (A, B, C, D)
When button A is clicked, Button B changes its color for 100 ms and revert.
And after button B revert its color, button C does it again, and button D also.
I found how to make delay, and stuck with this.
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
  @Override
  public void run() {
    //Do something after 100ms
  }
}, 100);
How to call a method after a delay in Android
This was the Question.
What method should I use for this?
 
     
    