If you don't know why a remote service would be useful to you, don't use it.
 You'll know when you need one, because your local service won't work.
 (Basically if you get into a situation where another process needs to bind
to your service.)

On Tue, Nov 30, 2010 at 10:01 AM, Isaac Wagner <[email protected]>wrote:

> I've been reading Mark Murphy's books about Android programming and I
> am having trouble understanding some things about services.  As I
> understand it there are "local" and "remote" services that I can
> create.  However, what I don't understand are the use cases for when
> you would use one over the other.  Here's basically what I need to do
> and I'm not sure about which service type to use.  I want to create an
> application and a homescreen widget that both get data from a service.
>  I had in mind a service where the application and the widget could
> register a callback with the service to get data updates.  Is that
> best done by a remote or a local service, or does it matter?  Can
> either one be used?  Any hints or tips would be great.  Oh, if it
> matters the app, widget, and service will be in a single apk.  Thanks.
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
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

Reply via email to