Thank you for visiting the BlackBerry Support Community Forums.
- Kevin Michaluk, Founder, CrackBerry.com
03-27-2009 09:26 AM
short question: I have two background-processes. One process may be notified to shut itself down by SMS. But when it shuts down I want to shut down my second process as well. Whats the best way to do this?
I am thinking of placing a "note" into the runtime-store before shutting down the first process. If the second process reads the note it shuts down as well. Problem: I may deinstall my first process and then I need a reboot. After the reboot my note is lost (the second process sleeps most of the time...) and the second process wont shut down... Same problem using persistent store when removing my application....
Solved! Go to Solution.
03-27-2009 09:36 AM
03-27-2009 10:11 AM
Further to Simon's note, RuntimeStore does not survive a reboot, so don't put a note in there.
You might also consider putting code into the second application to see if the first is actually there. Never done this myself, but if I was too, I would look at ApplicationManager to see if the application is running or CodeModuleManager to see if the associated cod was there. But I suspect either of these is a more work than using PersistentStore.
03-27-2009 10:17 AM
Hi Simon, hi Peter,
thanks for your replies! I will but a boolean in the persistent-store then.
Peter: I know the cod is there and running, i check it using the ApplicationManager. But nevertheless I cant terminate a application using the ApplicationManager, or do i misunderstand something?
03-27-2009 10:22 AM
03-27-2009 10:29 AM
03-27-2009 10:33 AM - edited 03-27-2009 11:56 PM
Some people ask questions
Some experts answers questions
questioner, says thanks thats the solution and mark their own reply as accepted solution, rather putting the solution as accepted
Sorry buddy, I thought it was not by mistake :LOL: