Implement and dynamically configure auto-start upon startup in version 3

Source: Internet
Author: User
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 );}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.