I'm trying to figure out the pros and cons of writing an android remote service as a part of my client app (using android:process=":remote") vs making it a separate service app.
In both the cases, the service would be running in its own separate process and having its own heap etc. However, there have to be some differences when we make it a separate app since it will have its own application sandbox. I found many examples of their usage and preferred approaches as per the scenarios but I'm trying to understand the internal technical details of it.
Any good source of information on this?
Edit: What will be the impact on the application object/context in case the service and client processes are running in the same app. Will it get overwritten by one of the processes? or there will be two application objects for each process which doesn't sound correct being the part of one app.