Hello, I found a weird behavior here. At least, weird for me.

The problem is mainly this:

* My app is created and is running, I go to a menu and choose an
option that starts function X(), that assembles a 2 frame animation
and shows it on an ImageView. It works ok.

* On the onResume I have a check and another call for this same
function to continue the animation. It works ok if I go to the
preferences screen and go back, it even  changes the animation
behavior based on the new settings.

* When I rotate my phone/emulator, the animation stops. If I go to the
menu and start it again, it works ok, but changing the orientation
makes the animation stops again.

I monitored my variables and function calls and the only difference is
that android calls only my onResume when exiting the preferences, and
the onCreate -> onResume when changing orientation (as expected). The
thing is, the menu item and the onResume calls the same function! And
I dont see anything at onCreate that could be that drastic.
Also, it works with non-animation Drawables, if I set the view to
image X and rotate it will set it again and it will work ok.

Is this a bug or something mistical that I am doing wrong?

-- 
José de Paula Eufrásio Júnior (coredump)
MCSO, GRC Professional
http://core.eti.br

--~--~---------~--~----~------------~-------~--~----~
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