Hi

You need to use android.graphics.Movie to play a GIF file.

Set the animation:
InputStream input =
context.getResources().openRawResource(R.drawable.gifAnimFile);
Movie movie = Movie.decodeStream(input);

get the duration of the gif
int dur = movie.duration()
and calculate the relative time for the animation to set the time
movie.setTime (int relativeMilliseconds)

Thank you

On Jul 29, 11:02 am, Kunju Vava <[email protected]> wrote:
> Hi all
> I want to  place a GIF image ia sceen in android , i just create image view
> and place the image from the drawable directory , while running it is
> displaying but it is not anmating what i do????
>
> plse help me ....
> --
> --
> ωιтн яєgαя∂ѕ
> Ratheesh * *...........

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to