[android-developers] Re: To play gif from a file

2013-05-02 Thread bob
No problem. Also, what you may want to do is simply use the *GifDecoderView* class that is also in that project: *FileInputStream fis = null;* *try {* * fis = new FileInputStream("/mnt/sdcard/piggy.gif");* *} catch (FileNotFoundException e) {* * **e.printStackTrace();* *}* * * *GifDecoderView v

[android-developers] Re: To play gif from a file

2013-05-01 Thread Beyza Nur Kökcan
Thank you so much, it works fine now -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@g

[android-developers] Re: To play gif from a file

2013-05-01 Thread bob
As a workaround, you can probably do something like this: *FileInputStream fis = new FileInputStream("/mnt/sdcard/piggy.gif");* *BufferedInputStream bis = new BufferedInputStream(fis);* *bis.mark(10);* *Movie movie = Movie.decodeStream(bis);* *int width = movie.width();* *int height = movie.h

[android-developers] Re: To play gif from a file

2013-05-01 Thread bob
I have looked further into this issue, and the issue is actually a bug in FileInputStream. Basically, every class that derives from InputStream needs to implement the reset() method, and FileInputStream neglects to do so. Please see this in the InputStream source code:

[android-developers] Re: To play gif from a file

2013-04-30 Thread bob
I have played animated GIFs on Android before simply by loading them in a * WebView*. Thanks. On Tuesday, April 30, 2013 9:09:26 AM UTC-5, Beyza Nur Kökcan wrote: > > Hi, > I have found tutorials about how to play animated gifs in android by > reading it from an asset or using a drawable o