In fact they are two different applications, running in two different
processes, with two different VMs.  It is just physically impossible to
access each others' objects like that.

On Mon, Sep 21, 2009 at 8:59 PM, Mark Murphy <mmur...@commonsware.com>wrote:

>
> > Suppose that my friend has written an activity called A1. And then I
> > install it in my phone and run the application. I don't know what he
> > has done in that Activity. I just have runtime Intent object that used
> > to start A1. But I need to obtain the Activity object for doing some
> > thing on that screen. How can I obtain the reference to that
> > Activity???
>
> You can't. That would be a security violation.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> Android App Developer Books: http://commonsware.com/books.html
>
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to