You can attach listeners to your animation: Attach an animation-listener to your rotate-animation. In the 'on- animation-ended' callback of the listener, do the startActivity(...).
When the animation ends, this callback is automatically called and will then start the activity. On Dec 2, 3:19 am, tstanly <[email protected]> wrote: > hi all, > > I design a rotate animation when activity 1 ends, and then start > activity 2. > so my code is: > =======when activity 1 ends function=============== > > rotate_animation(); //first call up the animation > > Intent i=new Intent(); > i.setClass(activity1.this,activity2.class); > startActivity(i); > > =========================================== > but this code will not saw the animation totally, > that's means, the animation will pop up a second then soon activity2 > start! > but I need the animation play over, then the activity 2 start. > > so how I do for that requestion? > I almost use the thread&handler to do, but it wasn't work. > > thanks! -- 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

