Correct. A receiver only lasts for the duration of the onReceive() call. There is no way for you to get a bind result back before returning from onReceive(), so it is impossible to bind to a service from there.
On Wed, Sep 30, 2009 at 1:10 PM, sdphil <[email protected]> wrote: > > i get an error message like -- > > 09-30 20:08:24.733: ERROR/AndroidRuntime(949): Caused by: > android.content.ReceiverCallNotAllowedException: IntentReceiver > components are not allowed to bind to services > 09-30 20:08:24.733: ERROR/AndroidRuntime(949): at > android.app.ReceiverRestrictedContext.bindService > (ApplicationContext.java:136) > > so i guess you can't bind to a service in an AppWidgetProvider - > although you can start the service just fine... ?? > > tia. > > > -- 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, and so won't reply to such e-mails. 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 -~----------~----~----~----~------~----~------~--~---

