[android-developers] Re: AnimationDrawable: animation can't be started in onResume
I know this post is old but if you are still having trouble, start your AnimationDrawable in the onWindowFocusChanged method. Good luck:) On Tuesday, January 27, 2009 10:36:03 AM UTC-5, G. Blake Meike wrote: There's already been some discussion of this, in various lists and blogs. I finally got an AnimationDrawable to work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler. I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the background AnimationDrawable to start. Can anyone enlighten me? Thanks -blake -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: AnimationDrawable: animation can't be started in onResume
Apparently no-one else can figure it out, either... ;) -blake On Jan 27, 7:36 am, blake blake.me...@gmail.com wrote: There's already been some discussion of this, in various lists and blogs. I finally got an AnimationDrawable to work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler. I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the background AnimationDrawable to start. Can anyone enlighten me? Thanks -blake --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AnimationDrawable: animation can't be started in onResume
It's a framework bug that I recently fixed in cupcake. You can work around this by setting the drawable not as the background drawable of a View but as the content (in an ImageView for instance.) On Wed, Jan 28, 2009 at 1:03 PM, blake blake.me...@gmail.com wrote: Apparently no-one else can figure it out, either... ;) -blake On Jan 27, 7:36 am, blake blake.me...@gmail.com wrote: There's already been some discussion of this, in various lists and blogs. I finally got an AnimationDrawable to work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler. I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the background AnimationDrawable to start. Can anyone enlighten me? Thanks -blake -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AnimationDrawable: animation can't be started in onResume
I'm afraid I can't help, but I'd be interested to know how you got it to work? 2009/1/28 blake blake.me...@gmail.com Apparently no-one else can figure it out, either... ;) -blake On Jan 27, 7:36 am, blake blake.me...@gmail.com wrote: There's already been some discussion of this, in various lists and blogs. I finally got an AnimationDrawable to work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler. I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the background AnimationDrawable to start. Can anyone enlighten me? Thanks -blake -- Phill Midwinter Director Grant Midwinter Limited d: 0844 736 5234 x: 0 m: 07538 082156 e: ph...@grantmidwinter.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: AnimationDrawable: animation can't be started in onResume
Thank you Romain! -blake On Jan 28, 1:07 pm, Romain Guy romain...@google.com wrote: It's a framework bug that I recently fixed in cupcake. You can work around this by setting the drawable not as the background drawable of a View but as the content (in an ImageView for instance.) On Wed, Jan 28, 2009 at 1:03 PM, blake blake.me...@gmail.com wrote: Apparently no-one else can figure it out, either... ;) -blake On Jan 27, 7:36 am, blake blake.me...@gmail.com wrote: There's already been some discussion of this, in various lists and blogs. I finally got anAnimationDrawableto work, but I cannot start it from onResume. I can start it from a timer that onResume starts, or an onClickHandler. I've poked around the source a bit and I can't figure out, specifically, what state the view has to be in, in order for the backgroundAnimationDrawableto start. Can anyone enlighten me? Thanks -blake -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---