Have a look at the Api Demo and check the RemoteService example,
especially RemoteServiceCallback.
I would say that 1.) is the appropriate solution: Activity A binds to
S (and registeres the call back). Then A gets updates when available
through callback.

Friedger

On 9 Nov., 05:11, Don Park <[EMAIL PROTECTED]> wrote:
> Activity A is able to bind to service S and use the AIDL to make calls
> from A to S.
>
> Whats the best way for S to send a notice to A?
>
> It seems there are three possible approaches:
> 1. AIDL for an activity (im not sure if thats possible), then S will
> bind to A (when A is active).
> 2. send an android.os.Message from S to A
> 3. send an Intent from S to A
>
> Any or all of these options might be invalid, I though I would ask
> here before exploring each one.
>
> if it helps to think in specific terms about this application: the
> service gets GPS updates and records them. If the Activity is running
> (its a MapActivity), the map should recenter when the service receives
> a new update.
>
> Don
--~--~---------~--~----~------------~-------~--~----~
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