Gif playing problem!

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Gif playing problem!

Postby Jay » Fri Nov 07, 2008 3:29 am

Hi guys,
I am trying the code from API demo of playing a gif file. But I found that the duration of an arbitrary gif file ( not the flag in demo applicaion) got by the Movie Class is 0.
Does anybody know why it happens and is there another way to play a gif ?

Thanks,
Jay
Jay
Developer
Developer
 
Posts: 28
Joined: Wed Apr 23, 2008 3:51 am

Top

Postby MrSnowflake » Fri Nov 07, 2008 10:30 am

Isn't a duration of 0 to repeat infinite times?

Don't create double threads
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby Jay » Mon Nov 10, 2008 4:00 am

MrSnowflake wrote:Isn't a duration of 0 to repeat infinite times?

Don't create double threads


Hi , thanks for the reply .

I have try the same code from the API demo / graphics/ BitmapDecode with another GIF file . and the duration got by the Movie.duration() method is still 0 . But the demo gif which keeps repeating can get a duration "1000".

So, I don't think the duration 0 means it will repeat for infinite times .
Jay
Developer
Developer
 
Posts: 28
Joined: Wed Apr 23, 2008 3:51 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 3 guests