AIDl and app widgets do not mix, since binding is an asynchronous operation. Use the command pattern with startService().
For outbound, you do not need to send anything to the app widget, as the service can just update the app widget's UI itself. For communication back to an activity, use a broadcast Intent (with setPackage() on newer versions of Android), or createPendingResult(), or Messenger, etc. On Wed, Dec 8, 2010 at 2:27 PM, Moto <medicalsou...@gmail.com> wrote: > I find my self over and over re-writing my service in my app. I > essentially want to provide control over my service easily for things > such as home widgets or other apps. > > What are the things my service supports: > > Incoming: > -start playback > -stop playback > -toggle playback > -start special features > > Outgoing: > -metadata > -media playback status > -special features reporting status > -playback time (every second) > > > > Questions: > What are the things I should look for when deciding to implement an > aidl interface versus calling the service using Intents? > > Should I use Broadcasts to report the service status and information > as opposed to aidl? > > Sorry if my questions aren't making sense... > > Thanks! > -Moto > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 3.0.1 Available! -- 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