
Originally Posted by
[URL]http://developer.symbian.com/main/tools/utilities/cpp/index.jsp#sob[/URL]
Start-on-Boot Registration API
A common task Symbian OS developers face is to set up daemon services that run in the background waiting for or initiating events. For example you might wish to have some code execute or an application be launched at a scheduled time, or in response to receiving an inbound connection. In practice the combination of CActive and CServer classes provides the framework to create the service itself. What can be tricky, though, is ensuring that the service is running at all times, especially after the phone is rebooted. We provide here for the first time a very simple solution to this problem. The Start-on-Boot API allows you to specify that an executable of your choice be launched and kept running indefinitely by registering it for re-launch as part of the phone's boot sequence. The implementation of the API includes checks which ensure that any malfunctioning executable introduced into the boot sequence which prevents successful reboot subsequently is automatically de-registered.