Gif animation on JellyBean 4.2 not showing

I use

  • Nexus 7 android 4.2
  • SDK and eclipse are a version of adt-bundle-windows. * download on 2012-11-21st
  • OS - Windows7 64bits home premium sp1

I tried to run sample code

... \ ApiDemos \ SRC \ COM \ e.g. \ Android \ APIs \ graphics \ BitmapDecode.java.

It is successfully built and runs both on the simulator and on my connection 7. The problem is that the application does not display *.gif animation, but another 3 *.bmp displayed. There is not even a black box on the screen.

I tried another *.gif file, which is an example image file from the Internet or SDK .

And I added the files to google group. Here is the link .

In debug mode, I checked some parameters and as shown below:

  • the input stream is the same length as the gif file, so I think it reads successfully.
  • The Movie.draw x, y has a positive number.
  • Perhaps the frame rate is too high, so I tried to slow down by setting a delay and tried Movie.setTime (10); Therefore, he must show some static picture. But my device / simulator just got a blank screen.

Thanks.

Regards, Murnesty

+4
source share
1 answer

Android does not support animated GIFs.

-1
source

Source: https://habr.com/ru/post/1447426/


All Articles