Wednesday, 18 September 2013

Android - Getting activity object from startActivity

Android - Getting activity object from startActivity

Folks,
I need to get the instance of the Activity that was created when
startActivity() is called. However, startActivity() returns a void value.
I guess startActivity() doesn't wait until the Activity is created.
Is there a different way for me to get hold of the activity that was just
created on the call to startActivity? Or, perhaps I can create an Activity
instance myself and register it somewhere so that startActivity can find
it.
Thank you in advance for your help.
Regards,
Peter

No comments:

Post a Comment