Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

onCreate method ?

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ,

How i should come to know that particular activity has finished its job(i means onCreate method has completed successfully).
Or how should i know that startAnimation method has completed successfully ,because i want to start another activity after completion of the animation.
Is there any logic ?


Thanks
Chetan
 
Mark L. Murphy
Author
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How i should come to know that particular activity has finished its job(i means onCreate method has completed successfully).


If it is your activity, you are the implementer of onCreate(), so you know when onCreate() is done.

If it is another application's activity, you have no way to know.

Or how should i know that startAnimation method has completed successfully ,because i want to start another activity after completion of the animation.


You can register a completion listener with an animation to get called when the animation completes.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!