title: Android Button Blinkin Animation with different images
body: <p>I'm developing an android application and i need to do an button animation.</p>
  
  <p>I'm a two different image to button and i want setBackground of button with this 2 images alternate them with 500ms delay and in total only 2 seconds.</p>
  
  <p>How i can do this and make program wait to end of animation when i run them?</p>
  
  <p>my button have an background and an text. I want this Order SeQuence: Click Button -> Alert Dialog -> If Yes, Exit Dialog - > Call Animation(And all Activity wait for this animation) -> In the end of Animation call another function and continues the program</p>
  
  <p>Regards</p>