Discussion Board

Results 1 to 6 of 6

Thread: Auto Start Api

  1. #1
    Registered User ahkhan's Avatar
    Join Date
    Jun 2008
    Posts
    19
    Hi,
    I am trying to launch my application on Device reboot,I am using autostart api.
    I am unable to start the application on device boot up.Please check the following code.And tell me is there anything missed out.I am working on V9.3

    In the MMP file i have the following code:

    TARGET PanicCapturer_0x2001C3A9.exe
    TARGETTYPE exe
    UID 0x100039CE 0x2001C3A9

    SOURCEPATH ..\src
    SOURCE PanicCapturer.cpp
    SOURCE PanicCapturerApplication.cpp
    SOURCE PanicCapturerAppView.cpp
    SOURCE PanicCapturerAppUi.cpp
    SOURCE PanicCapturerDocument.cpp
    SOURCE ThreadNotifier.cpp
    SOURCE Logger.cpp
    SOURCE Settings.cpp
    SOURCE SettingsDialog.cpp

    SOURCEPATH ..\data

    START RESOURCE PanicCapturer.rss
    HEADER
    TARGET PanicCapturer_0x2001C3A9
    TARGETPATH resource\apps
    END //RESOURCE

    START RESOURCE PanicCapturer_reg.rss
    TARGET PanicCapturer_0x2001C3A9_reg
    TARGETPATH \private\10003a3f\apps
    END //RESOURCE

    START RESOURCE 2001C3A9.rss
    END

    USERINCLUDE ..\inc
    USERINCLUDE ..\help

    SYSTEMINCLUDE \epoc32\include

    LIBRARY euser.lib
    LIBRARY apparc.lib
    LIBRARY cone.lib
    LIBRARY eikcore.lib
    LIBRARY avkon.lib
    LIBRARY commonengine.lib
    LIBRARY efsrv.lib
    LIBRARY estor.lib apgrfx.lib eiksrv.lib etel3rdparty.lib hal.lib
    LIBRARY aknnotify.lib ws32.lib imageconversion.lib platformenv.lib
    LIBRARY hlplch.lib bafl.lib eikdlg.lib fbscli.lib eikctl.lib eikcoctl.lib apmime.lib

    LANG SC

    VENDORID 0
    SECUREID 0x2001C3A9

    CAPABILITY None

    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE
    #endif
    // End of File
    ///////-------/////////////////
    The Resource file i have:
    #include <startupitem.rh>

    RESOURCE STARTUP_ITEM_INFO startexe
    {
    executable_name = "!:\\sys\\bin
    PanicCapturer_0x2001C3A9.exe";
    recovery = EStartupItemExPolicyNone;
    }

    //--Code for pkg file
    "..\..\..\..\S60_3rd_FP2_SDK\epoc32\data\2001C3A9.rsc"-"!:\private\10003a3f\import[2001C3A9].rsc"

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    10003a3f is for _reg.rsc-s.
    Startup registrations are to be deployed in 101f875a

  3. #3
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,240
    Quote Originally Posted by ahkhan View Post
    //--Code for pkg file
    "..\..\..\..\S60_3rd_FP2_SDK\epoc32\data\2001C3A9.rsc"-"!:\private\10003a3f\import[2001C3A9].rsc"
    It must be typo. Anyways adding to Wizard, please see this article which deals with Startup List Management API: How to autostart an application on boot up in 3rd- Startup List Management API

    Please make sure to read the "Useful links" section under that article which will be helpful for sure.
    Nokia Developer Wiki Moderation team

  4. #4
    Registered User TurboC's Avatar
    Join Date
    Jul 2008
    Posts
    1,201
    Must be installed on the C disk
    TurboC
    珍惜每一次机会

  5. #5
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by TurboC View Post
    Must be installed on the C disk
    no not true

  6. #6
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Quote Originally Posted by skumar_rao View Post
    Quote Originally Posted by TurboC View Post
    Must be installed on the C disk
    no not true
    Yes, true The start-up registration file must be installed on the C: drive while the exe to be started can be indeed on any of phone's drives.

Similar Threads

  1. How to get auto start programs list on 3rd
    By jobe159 in forum Symbian C++
    Replies: 11
    Last Post: 2008-07-29, 06:07
  2. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  3. Replies: 16
    Last Post: 2007-07-16, 05:25
  4. Replies: 2
    Last Post: 2004-04-01, 09:17
  5. Application auto start at paricular time
    By buytry in forum Symbian C++
    Replies: 1
    Last Post: 2004-02-04, 04:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved