sdphil wrote:
> i understand how to call methods on a service (aidl, etc...), but how
> does a service event information out.  how does it generate events
> back to the application?

Option #1: Broadcast an Intent using sendBroadcast()

Option #2: Implement a callback mechanism, where the client creates an
AIDL interface and sends a corresponding object to the service, which
uses that object to communicate back to the client

You can see examples of the latter in the RemoteClientEx and
RemoteServiceEx examples from my Advanced Android book:

http://github.com/commonsguy/cw-advandroid/tree/e50e087577f8b28e727355c55097a5da2577d6d3/AdvServices

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need help for your Android OSS project? http://wiki.andmob.org/hado

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