Not sure what your design looks like, but you may want to consider
startActivityForResult() instead of startActivity()...

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Wed, Apr 14, 2010 at 12:41 PM, Mark Murphy <[email protected]>wrote:

> Rodrigo Chiossi wrote:
> > Hi there!
> >
> > I have a main Activity and I'm starting a child activity with
> > startActivity(intent).
> > I want to get the Activity Object created for the child.
>
> No, you don't.
>
> First, it is not a "child activity".
>
> Second, you are MUCH better served not trying to do direct
> activity-to-activity communications that way. After all, your other
> activity may not exist (e.g., be closed by Android to free memory).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.0
> Available!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> [email protected]<android-beginners%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to