Unless you've ensured that anim_record is an AnimationDrawable, your attempts to start an animation are doomed.
Aside from that, I've encountered some buggy behaviour regarding the starting of AnimationRecordables within onCreate before. I suggest you try using a Handler to start the animation after a little delay. On Jul 8, 3:15 pm, cindy <[email protected]> wrote: > In my application, when activity is start, I want to automatically > start animation without user click. I called anim_record.start() in > onCreate function. But nothing happened. > > When and where should I start animation? -- 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

