As far as I know, this is a bug in 2.1, 2.2
A possible workaround might be:
ImageView rocketImage = (ImageView) layout.findViewById(R.id.animation); rocketImage.setBackgroundResource(R.drawable.progress_blue_animation); rocketAnimation = (AnimationDrawable) rocketImage.getBackground(); rocketImage.post(new Runnable(){ public void run(){ rocketAnimation.start(); } });
(But I have not tried it in Targets> 2.1)
source share