Posted By: Anonymous
I want to display animated GIF images in my aplication.
As I found out the hard way Android doesn’t support animated GIF natively.
However it can display animations using AnimationDrawable:
The example uses animation saved as frames in application resources but what I need is to display animated gif directly.
My plan is to break animated GIF to frames and add each frame as drawable to AnimationDrawable.
Does anyone know how to extract frames from animated GIF and convert each of them into Drawable?
Android actually can decode and display animated GIFs, using android.graphics.Movie class.