12-09-2010 06:33 AM
Our previous BlackBerry application has been made by someone else and now we want to make some changes to it.
The problem I'm working on now is that there was no way you could close the application, because the menu key was disabled (it always kept on running in the background). This combined with the fact that the application is creating a new thread, meant that when you looked over all the currently running programs, you had 2 processes that you could not stop.
Since then I have fixed the problem with the menu key and now I can stop the main application, but the background thread keeps on appearing as a currently running process (when I choose to switch applications).
So after this story, my question is:
How can you stop a background process?
In my case I want to stop the background process that the application started at some point and now won't close...
Solved! Go to Solution.
12-09-2010 06:54 AM
welcome to the support forums.
you can stop the background process using global events.
implement a globaleventlistener in the background process and define a terminate event.
or you could mark it as a system module, it would not show up in the task manager, then.