My team is working on an Android project, which consists of several Android applications that exchange data (on one phone). The idea is to have several applications that collect some data and send that data to the main application. The main task here is to make the exchange as cheap as possible in terms of CPU utilization and battery usage.
As far as I know, there are two ways to achieve interprocess communication:
- Skills and actions - one action catches the intentions of another
- Remote Methods (via AIDL)
I wonder which ones are more effective in the following scenarios:
- Very frequent messages / method calls with very little data / traffic sent (for example, just passing a bunch of primitives)
- Less frequent method messages / calls with large fragments of traffic (for example, they collect data and periodically send several KB / MB of data).
- Very frequent messages / method calls with exchanging large chunks of data
I would appreciate any help, be it in terms of comparison or link / benchmark link.
source
share