Actually if you post again and again like you did, before I deleted some of you posts, it appears to our moderators that there is already a response. SO... it is less likely that they will open your thread and try to help.
I did forward this to a few people I know to see if they can help you out.
The reason I posted the code is simple; maybe someone else can get the code to work. The code is after all from Symbian knowledge base.
Here is one scenario that we already use:
We have an SMS application that both sends and receives messages. The receiver needs to be working in the background all the time (A recogniser is used to achieve this) The receiver also has a UI associated to it so this effectively rules out the use of a server, we use a DLL to achieve the UI element.
So… The recogniser runs in the background all the time, when a message is received this then ‘wakes’ the receivers UI. Unfortunately the UI icon will be in the application icons list. We (have) needed to remove this icon to stop the user from inadvertently stopping the application.
The above two items are only part of the overall system. The user does however have to ability to stop the receiver from the main app (controller). As long as this is well documented to the user then I think this is an acceptable way to do things. If you take a closer look you will see that Symbian also does this in places.
There are of course other reasons as to why you would (And indeed would not) want to do this but I wont bore you with the details.