It makes no sense to do a managed query in a BroadcastReceiver, since a managed query is all about helping you manage the query with an activity's lifecycle in a BroadcastReceiver is not an activity. The lifecycle of a receive is very simple: its function is called, that function does stuff, it returns, and that is the end of that. Thus you need to do all of your work in that function (which for a query can only be to just directly do a query), and if you need something to continue running outside of it you will need to do something like start a service.
On Tue, Jan 6, 2009 at 12:54 PM, CJ <[email protected]> wrote: > > it seems to do a query, i have to have an activity. but, what i have > for now is a BroadcastReceiver. how should i redesign my application? > because i did not intend to start any activity in my > BroadcastReceiver. > thanks > > > > -- 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. 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 -~----------~----~----~----~------~----~------~--~---

