What is a reliable way of sending messages between process in Android?

433 Views Asked by At

I'm an Android newbie. I'm trying to send and receive messages between process. One thing which I'm aware of is communicating via binder calls by implementing a Service. The other message transferring mechanism which I've seen so far is

  1. Broadcast (Not reliable though) - which can be missed
  2. Event bus (Not sure IPC is possible with greenrobot's event bus - this SO link says it's not possible and suggested for alternatives
  3. Registering a ContentObserver so that I can update my content at one process and the other process can get notified of the content change (Not sure this is reliable)

All I mean by reliable is that it can be missed at rare cases. Is there any alternative reliable and ordered (delivered in the same order in which it's published) - message exchanging mechanism between processes in Android?

EDIT: Though there are many ways discussed in this SO Link I would like to maintain the message order and guaranteed delivery of message.

0

There are 0 best solutions below