Code example for AnimationDrawable

Methods: setVisible, start

0
				public void run() {  
					try{ 
						logDebug("starting animation!"); 
						animImageStickman.setImageDrawable(animDrawableStickman);
						//animImageStickman.setFillAfter(true); 
						animDrawableStickman.start();
						// this is the reset bit.. 
						animDrawableStickman.setVisible(true, true);
 
					}catch(Throwable tr) { Log.e(TAG, "Error in runAnimationViaPost! ",tr);}
				} 
			} 
			);		 
} 
//////////////////////////////////////////// 
 
 
}