On Wed, Apr 14, 2010 at 3:03 PM, Rodrigo Chiossi <[email protected]> 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. How can I do > it?
I don't know for what, as when you start the new "child" activity you are in it's context and the other is stopped. Although, If you want this, an ugly solution can be to have a Main class that extends Application and you implement a tree or a list or whatever you want of activities, and everytime you launch a new activity you add it to that tree, list or whatever. I don't know for what you will want to, but I think you can do that UGLY solution. Then, you add the Main class name to the xml manifest, and that class is instanciated before anything. You can access public methods with getApplication(). -- If you want freedom, compile the source. Get gentoo. Sebastián Treu http://labombiya.com.ar -- 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 To unsubscribe, reply using "remove me" as the subject.

