You could use an IPC (kind of) mechanism to exchange data between the "Service" and Application. There are two ways of accomplishing this:
- net.rim.device.api.system.RuntimeStore has methods to put and get an Object that is identified by an unique id (long). This id can be generated from within the JDE IDE.
- net.rim.device.api.system.ApplicationManager has methods that allows one to post global events, that can exchange data (once again identified by unique id). The other application will have to implement GlobalEventListener and register with the system - addGlobalEventListener.
In the first approach, the other entity is not notified when data is added to store.