How many ways for an android service to communicate with other components within the same application -


in android, given specific service, how many methods exist service communicate other components (activity, content provider, receiver, other services)?

as far know, there @ least 7 methods:

  1. startservice
  2. aidl/bindservice
  3. sendbroadcast
  4. startactivity
  5. notification
  6. messenger mechanism
  7. ashmem

are there others?

thanks.

like gunar said, can use event bus.

the popular are:

the documentation it's self explanatory if need started let me know.

regards, ryan


Comments