From Forum Nokia Wiki
Applicable version:
Serire 60 3rd edition
Specific solution: In version 3, the new startup list management API is used to enable auto-start upon startup. Application requiredProgramTo enable Automatic startup, follow these steps: 1. Create a resource file named 0xxxxxxx. RSS and 0xxxxxxx in the data directory of the Project as uid3 of the program to be started. Fill in the following content in the resource file:
# Include <startupitem. RH> resource startup_item_info startexe {executable_name = "\ sys \ bin \ yourappname.exe"; // replace it with your program name recovery = estartupitemexpolicynone ;}
2. Add the resource file to your project file. MMP.
Sourcepath .. \ data start resource 0xxxxxxx. RSS end
3. Update your package PKG file. Note that this resource file can only be installed on drive C. Do not forget the brackets:
"\ Epoc32 \ data \ 0xxxxxxx. RSC"-"c: \ private \ 101f875a \ import \ [xxxxxx]. RSC"
In this way, after your program is re-compiled and packaged, you can use the developer certificate signature to enable automatic startup upon startup.
If you want to enable the configuration program to start automatically based on the settings, you also need to complete the following steps: 1. Modify the registered resource file yourappname_reg.rss of the program and add the followingCode
# Include <appinfo. RH> # include <uikon. RH> resource app_registration_info {// the original code opaque_data = r_startup_detect;} resource number_int8 r_startup_detect {value = 1 ;}
2. Reload the processcommandparametersl () function in Appui.
Bool cyourappnameappui: processcommandparametersl (capacommandline & acommandline) {If (acommandline. opaquedata (). length ()> 0) {// here is manual start} else {// here it is automatically started after the program is started. If it is set to not automatically started after the boot, call the exit () function to exit. } Return ceikappui: processcommandparametersl (acommandline );}