In my Android app, I have subclassed Application and have overridden
onCreate().  My onCreate() does a few quick things, including reading
values from shared prefs and reading information from the manifest,
then storing them in static members of my application subclass.

When my broadcast receivers (e.g. alarms, boot receivers, etc) get
triggered via their onReceive() handlers, can't I assume that my
application's onCreate() has already been called and that the values
stored in my application are now accessible?  I'm not finding that to
be the case, and have to read from shared prefs directly in my
broadcast receiver's onReceive() handler.  What am I misunderstanding?

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