In Android I have a service (started through standard startService
call). The application is referencing a library JAR file. The first Activity sets a static boolean field to "true", then in the service process, I see that this value is true as well.
How can this be?
The service is started after the value is set -- could it be that the DVM copies the static state when the service process is created, or are static
fields shared between processes? I was under the impression that a separate VM was launched for each process.