×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Location
    California, USA
    Posts
    121

    Question App fails to be launched by Startup Management List

    Like so many others I'm experiencing an autostart problem with 3rd edition. When the executable is installed, it is successfully launched by the installer and performs its task. However, after the phone is rebooted, it doesn't.

    [aside: I've read extensively on Nokia Forum with respect to "Startup Management List API" and autostart. If you think I missed something don't hestitate to forward the link. I'd rather read it twice then not at all. ]

    Here are the steps I've taken.

    1) I am using a UID in the 0x2XXXXXXX range.
    2) it is signed with a dev cert.
    3) The resource file contains:

    #include <startupitem.rh>

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

    4) Here is how it is references in the mmp file.
    // autostart - use Startup List Management API to start watchdog.exe during startup.
    START RESOURCE ..\..\autostart\group\2XXXXXXX.rss
    TARGETPATH \private\101f875a\import
    END //RESOURCE

    5) The control file is copied to the SW Installer UI server import directory. From the offending package file:

    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\Release\gcce\urel\watchdog.exe"-"!:\sys\bin\watchdog.exe",FR,RI

    ; Startup Control file - Startup List Management API
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\Data\z\private\101f875a\import\2XXXXXXX.rsc"- "c:\private\101f875a\import\[2XXXXXXX].rsc"

    6) I believe I'm adhering to all the constrains. From the SDK -
    "The interface defines rules and policies, which allows 3rd party application to make modification to the device's startup list during the installation/uninstallation process. 1. SW Installer UI acceptes the modification request to the startup list only from trusted software. 2. SW Installer UI allows 3rd party application to add/remove to/from the startup list only executables deliveres within their own installation package. 3. Startup list modification requests must be installed to SW Installer UI server import directory (c:\private\101F875A\import). 4. The modification requests are accepted if its name (file name) equals to the UID of the currently proceding installation package otherwise they are rejected. 5. The modification request must contain: Name of executable file, Exception Policy"

    No warnings are seen during installation. Is there a way to confirm Symbian tried to start it? If Symbian tried to launch the app and the app failed, is there a log file to check? Comments/suggestions are most welcome.

    Thanks for your time and consideration.

    Sincerely,

    -jk

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: App fails to be launched by Startup Management List

    I would create a little gui app that launches the watchdog process and verify that it can actually start on the device and does not stop within 5 seconds.

    Also verify that your package id (the line with the #) is the same as the uid of the resource file.

  3. #3
    Regular Contributor
    Join Date
    Nov 2004
    Location
    California, USA
    Posts
    121

    Smile Re: App fails to be launched by Startup Management List

    Thanks Paul.

    I knew the application UID had to match the resource UID. I didn't know it also had to make the package UID. I've been using one package file with multiple executables. So this wasn't the case. It works if it split it into its own package file.

    -jk

  4. #4
    Regular Contributor
    Join Date
    Nov 2004
    Location
    California, USA
    Posts
    121

    Question Re: App fails to be launched by Startup Management List

    My product is composed of two 3rd edition applications. One is the full blown s60 application. The other is a daemon. I am using the Startup List Management API to ensure the daemon starts after the phone is rebooted. To use this facility, the UID of the package and application must be identical to the resource used to register the application. (see Paul's comments above). This implies one needs a separate package and sis file for it. If one installs two sis files on the phone, it works fine.

    Users shouldn't have to install two sis files. If I embed the daemon sis file into the package file for the application. There are no errors but the daemon fails to start after the phone is rebooted. Why doesn't this work? Is there an alternative?

    -jk

  5. #5
    Regular Contributor
    Join Date
    Nov 2004
    Location
    California, USA
    Posts
    121

    Re: App fails to be launched by Startup Management List

    After posting, an answer came to me. There is no reason the package UID needs to be the same as the main s60 application. If I use the daemon's UID for the package UID, it works.

    -jk

Similar Threads

  1. Accessing T9 dictionary word list from J2ME app
    By steve_j76 in forum Mobile Java General
    Replies: 3
    Last Post: 2008-03-06, 13:47
  2. Replies: 0
    Last Post: 2005-12-02, 08:35
  3. Replies: 2
    Last Post: 2003-08-06, 07:55
  4. URGENT : 3rd Party app version management (Series60, c++) ?
    By TrickLo in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-12-09, 11:51
  5. How to start your app on Startup?
    By Nokia_Archive in forum Symbian
    Replies: 1
    Last Post: 2002-05-29, 16:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×