On Mon, May 28, 2012 at 3:10 PM, Latimerius <l4t1m3r...@googlemail.com>wrote:

> Say package A gets a package B's Context by calling
>
> Context pkgBctx = createPackageContext ("B", 0);
>

Read the summary for that method. This is not "getting" package B's
Context. This is creating a Context that refers to that package. Context is
an abstract concept, not some physical thing that is sitting around being
shared. So you basically have an object that has some in-memory state
information it obtained from B. If B goes away after it's created shouldn't
matter as it's just the source for your local Context instance.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

-- 
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