I played a gif like this ...
public class GIFDemo extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(new GIFView(this)); } private static class GIFView extends View{ Movie movie,movie1; InputStream is=null,is1=null; long moviestart; long moviestart1; public GIFView(Context context) { super(context); is=context.getResources().openRawResource(R.drawable.cartoon); is1=context.getResources().openRawResource(R.drawable.animated_gif); movie=Movie.decodeStream(is); movie1=Movie.decodeStream(is1);
source share