Alex,

When your BOOT_COMPLETE Broadcast receiver is called, your application
subclass's onCreate() method would have been called for sure. Of course it
is going to be called only once, but if you already have your data
initialized and cached, there should be no reason why you could not access
it.

I guess, if you could throw in some code, it could help debug to find the
answer.

Also, check if you are doing some of the initialization work in a separate
thread. If that is the case, then your broadcast receiver may get invoked
before the thread completes.

Ganesh.

On Wed, Jan 18, 2012 at 11:32 PM, Kristopher Micinski <
krismicin...@gmail.com> wrote:

> True, do you want to put a log in your Application onCreate and dump
> us the logs to see what's going on?  I don't know the behavior in the
> broadcast receiver case, but I would think that your App.onCreate
> should only end up getting called once, not on every onReceive, though
> I will have to look at the source on that one..
>
> kris
>
> On Wed, Jan 18, 2012 at 11:45 AM, Streets Of Boston
> <flyingdutc...@gmail.com> wrote:
> > That would be very odd. I've not seen this. Your Application's onCreate
> > should have been called before anything else of your app is being called.
> >
> > --
> > 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
>
> --
> 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
>

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