I don't believe there is a way -- the statics are initialized when the class
loader is created, which is just given a path to the .apk to load but only
looks at the dex files (it knows nothing about the manifest).

On Fri, Mar 26, 2010 at 1:30 PM, westmeadboy <[email protected]>wrote:

> Often, I want to set up statics (during class initialization/loading)
> in some activity based on things like package name, version code,
> whether the debuggable attribute is set in the Manifest etc.
>
> But, of course, the Context is not available at that time.
>
> All of these values are there in the manifest, so I'm trying to find
> if there is another way to access them?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
> To unsubscribe from this group, send email to android-developers+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to