All answers are nice and concise in this post. But I would like to highlight on which IPC mechanism I should use . First of all, IPC means Inter Process communication , where two applications or processes will communicate with each other, transferring some data between them. Since android is designed for embedded and small devices, we should not use serialization for IPC , instead we can use BINDERs , which uses parcels internally. Parcel is a kind of lightweight serialization using the concept of shared memory.
There are many differences between Binder IPC and Serialization IPC:
1. Serialization is very difficult to use in embedded devices; communication will be very slow. 2 .. Binding uses packets to make IPC really fast. 3 .. Binders internally use the concept of shared memory, which uses less memory when sharing data between two processes.
Bottom Line: BINDERs uses less memory and is pretty fast since it uses parquet. serialization very difficult, it takes time to send and receive data, and also requires more memory than attachments.
Note. To transfer data between actions, services, and recipients, use only Bundles . Do not use serialization or binding. Linking devices are specifically used only for linking services in which 2 processes will interact.
Hope this helps :)
Setu Kumar Basak Feb 17 '16 at 7:57 2016-02-17 07:57
source share