Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android animated GIF support

How can I check if current device supports animated GIF files? Checking OS version isn't reliable, because some Android 2.1 phones have enabled support and there are phones with 2.3 which do not support GIF files.

like image 578
Sebastian Nowak Avatar asked Nov 24 '11 13:11

Sebastian Nowak


People also ask

Can we use GIF in android?

Graphics Interchange Format(GIF) pictures play a huge part in little picture movement. Actually Android doesn't provide any support for GIF animation in the image view, but displaying a GIF image in an android application is not an exhausting process.

Why won't GIFs work on my android phone?

Android doesn't support GIF natively: Android still doesn't have built-in GIF support, it cannot run GIFs naturally within the system. Android prefers WebM: Android had WebM support for a long time. It is a similar format to GIF with better compression of data and higher quality.

Do GIF files support animation?

GIF image files are commonly used on the web to display graphics and logos. They also support basic animation, which means they're a popular file format for memes on social media sites.


1 Answers

Well, the only backwards compatible solution i can think of right now is just get all frames from the gif and animate it yourself in a view.

check out this question to do so: Split GIF into frames

like image 89
Nick Avatar answered Sep 27 '22 18:09

Nick