You can't do this, because binding is async and your receiver is no longer active after returning from the receive function.
On Tue, Jan 20, 2009 at 11:41 AM, CJ <[email protected]> wrote: > > my idea was quite simple, it includes an activity, a > BroadcastReceiver, and a local service. > i try to bind to the service from either the activity or the > BroadcastReceiver. > the problem is: > if i call binding from the activity, everything looks fine. > but, if i call binding from the BroadcastReceiver, it always come back > with an exception (security not allowed, smth like that). > > can anybody help? btw, because this is a loal service, i did not > define any permission in the manifest.xml. should i? > > many thanks > CJ > > > -- 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 -~----------~----~----~----~------~----~------~--~---

