I just read this:
Android: How can I stop an infinite animation applied on an ImageView?, I tried it and it works perfectly, I set the animation in the onCreate()
method of my Activity using AnimationUtils.loadAnimation(AppContext, animationRes)
, then I start the animation using startAnimation()
and stop it using clearAnimation()
. The problem I've got is that if I start another activity and then go back to the one with the animation, it doesn't work anymore. It looks like the animation is not even started, the listener attached to the animation doesn't enter the onAnimationStart()
. Am I missing something here?
Thanks!