10-29-2012 10:42 PM
Solved! Go to Solution.
10-30-2012 05:27 AM
"I observed that when I close my ui app with activescreen.close my background app also terminates"
This should not happen and I can confirm does not happen in general. So I suspect the fact that your background Application closes is something in your code.
A few comments:
Are you sure your Background Application is closed? Have you debugged the code and seen it go through System.exit(..)?
You must also be very carefully when you have two applications that you know what data they are actually sharing and how they are communicating. Specifically any static variables that you think are shared are NOT.
And a lot of people think they have a Background application because they have started Threads in the main using a different alternate entry to their UI, but these Threads are not an Application. To start an Application you have to have used enterEventDispatcher on an Application object. If you haven't done that you don't have a Background Application.
So revisit your code and make sure you are doing what you think you are.