I am creating a application that provides a Service
for use by multiple 3rd parties. It also has a front-end UI that the user can access to manage the service and its interactions with other applications. For stability reasons I have currently set up the service to run in a separate process from the UI. I need to share state between the UI and the service. 3rd parties interact via a Messenger
interface. I do not want to have to deal with this overhead of messages for simply reading a boolean flag in the service from a UI activity within the application. I have attempted to use a subclass of Application
to share state, but as noted here this does not work across processes, which I have verified. What other mechanism is there for this purpose that works?
Thanks in advance.