Thursday, November 10, 2011

[android-developers] Re: How to communicate between an Android Broadcast Receiver and a RemoteService

Use Intents. Put data in the Intent's 'extras'.
Put this Intent in the startService call. The Service's onStartCommand will be called with this Intent and you can handle it there.

Or you can define an AIDL that your service implements. Bind to the service and communicate with the service through the methods defined in this AIDL.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate