Inheriting from AnimationDrawable

All your problems with Audio, Video and Images.

Inheriting from AnimationDrawable

Postby Serega » Mon Oct 19, 2009 8:26 am

Hi All,

I new in android. I want create class inherited from AnimationDrawable and in scheduleDrawable count each frame of animation, but when I declared
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public class MyAnimation extends AnimationDrawable
Parsed in 0.030 seconds, using GeSHi 1.0.8.4
and try init it in
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. public void onCreate(Bundle savedInstanceState)
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
via
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. MyAnimation myAnimation = (MyAnimation) girlImage.getBackground();
Parsed in 0.035 seconds, using GeSHi 1.0.8.4
in this moment my code fails, what wrong, may be I need create special constructor? Please help me
BEST REGARDS
SEREGA
Serega
Freshman
Freshman
 
Posts: 3
Joined: Mon Oct 19, 2009 8:13 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 18 guests