You can specify android:process=":remote" in your manifest to trigger the action / service in a separate process.
"remote" is just the name of the remote process, and you can call it whatever you want. If you want multiple processes / services to run in the same process, just draw the same name.
<activity android:name=".RemoteActivity" android:label="@string/app_name" android:process=":RemoteActivityProcess"/>
ddewaele
source share