title: Android: How can we backport withEndAction to older versions, with help of Nine Old Androids
body: <p>I'm working on something which requires about 10 animations to be played one after another, but there are some conditions to be checked at the end of each animation, so I can't use animation set or setStartDelay.</p>
  
  <p>I found it very easy to do on Jelly Bean with new methods on of which is withEndAction while I was doing it as an experiment, but now I've to implement it in an App with minSdk 10.</p>
  
  <p>I'm using Nine Old Android and it works great, but using setListner is very difficult and creates code that is difficult to maintain for 10 consecutive animations.</p>
  
  <p>So I was thinking, creating an Adapter that inherits from nine old androids and I could add withEndAction function which executes the runnable?</p>
  
  <p>Can someone guide me on how to do that, and is there any better way of doing this?</p>
  
  <p>Thanks</p>