views:

777

answers:

4

Animated GIF images rendered by Android's WebView do not seem to animate. Has anyone figured out how to make them work? I'm testing on an N1 with 2.1-u1. None of the web settings available seem applicable.

+1  A: 

AFAIK, animated GIFs are not supported on Android except as movie clips played by MediaPlayer.

CommonsWare
+4  A: 

Not supported YET. Read more about this here: http://code.google.com/p/android/issues/detail?id=3422

For large memory phones like Droid and Nexus One, the two-line change has been made in Froyo (unreleased) to enable animated GIFs. For small memory phones, the change is not trivial and did not make it into this future release.

vladikoff
Thanks for pointing out the issue discussion.
John in MD
+1  A: 

As a workaround, if you are using a custom WebView, you can do these 2 things together:

Please note that this is not a solution for displaying GIFs, you must modify the content of the web, and convert/split GIF animations into different files (one for each frame) in any format (JPG, PNG, etc).

LatinSuD
Great idea. Thanks!
John in MD
+1  A: 

Animated GIFs are supported in Froyo (Android 2.2).

Paul Lammertsma