Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-20 Thread Ganeshji Marwaha
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.

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
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

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Streets Of Boston
Your Application.onCreate is called only once for each process it runs in. (if you have multiple processes for your app, the Application.onCreate is called multiple times, but still only once per process). -- You received this message because you are subscribed to the Google Groups Android

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
Right..., but you shouldn't spawn a new process for each onReceieve... kris On Wed, Jan 18, 2012 at 1:21 PM, Streets Of Boston flyingdutc...@gmail.com wrote: Your Application.onCreate is called only once for each process it runs in. (if you have multiple processes for your app, the

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Mark Murphy
On Wed, Jan 18, 2012 at 1:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: Right..., but you shouldn't spawn a new process for each onReceieve... It is eminently possible, perhaps even likely, that each onReceive() will wind up in a separate process. If there are no other components

Re: [android-developers] Re: Is Application.onCreate() always called when broadcast receiver gets onReceive()?

2012-01-18 Thread Kristopher Micinski
Ah, right... Thanks for the clarification, Mark! kris On Wed, Jan 18, 2012 at 2:23 PM, Mark Murphy mmur...@commonsware.com wrote: On Wed, Jan 18, 2012 at 1:26 PM, Kristopher Micinski krismicin...@gmail.com wrote: Right..., but you shouldn't spawn a new process for each onReceieve... It is