I have a Service, which is foreground. It is locally bound to one (or more) activity, so the activity and the service runs in the same process. There might be some time during which the activity is not displayed (typical music player use case).
If service and activity are in the same process, the memory for the activity can't be repossessed by operating system, unless the service too is terminated? The answer seems yes to me, according to this article
If the last is true, should I create two separate process:
- To be nice to the system/other apps?
- to be more confident my service will not be killed?
Or, it is not a big deal to have the activity sticking around together with the service?