Android IPC Notes

Inter-process communication in Android:
Intent, ADIL, Messenger, ContentProvider, Socket, Shared File

Multiprocess in Android:
Generally speaking, an APP starts multiple processes.
Method: The four components add the android:process attribute to the Manifest
1)android:process=":abc"
APP's private process
2)android:process="edf"
You can share the same process with other APPs through shareUID, and the signatures of the APPs must be consistent.

Notes for APP opening multi-process:
1) Application will be initialized multiple times and there are multiple instance objects.
2) Concurrent synchronization code problem
3) Shared memory problem
4) Singleton problem
5) Activity stack problem

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324609964&siteId=291194637
IPC