×

Discussion Board

Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    15

    How to auto start a program in S60 3rd Edition?

    As I search for auto start, I found many information about how to auto start the program in 2nd Edition, how can i do in 3rd Edition?
    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: How to auto start a program in S60 3rd Edition?

    Hi,
    Quote Originally Posted by classicsong
    As I search for auto start, I found many information about how to auto start the program in 2nd Edition, how can i do in 3rd Edition?
    Thanks
    Refer to the Startup List Management API in the SDK help.
    You would find good information on forum too.

    Kiran.

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    15

    Re: How to auto start a program in S60 3rd Edition?

    yes, I have referred to the Startup List Management API, but still something confuse me, can you explain to me. Thank you.
    1.how to install the application executable to be added into the startup list, where is the startup list?
    2.how to deal with if i have aother .RSC files?

  4. #4
    Registered User
    Join Date
    Jan 2007
    Posts
    15

    Re: How to auto start a program in S60 3rd Edition?

    I try the code
    ; HelloWorldBasic.pkg
    ;
    ;Language - standard language definitions
    &EN

    ; standard SIS file header
    #{"HelloWorldBasic"},(0xA000017F),1,0,0

    ;Localised Vendor name
    %{"Vendor-EN"}

    ;Unique Vendor name
    :"Vendor"

    ;Supports Series 60 v 3.0
    [0x101F7961], 0, 0, 0, {"Series60ProductID"}

    ;Files to install
    "..\..\..\epoc32\release\gcce\urel\HelloWorldBasic.exe" -"!:\sys\bin\HelloWorldBasic.exe"
    "D:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\data\0x[A000017F].rsc" -"C:\private\A000017F\import\[A000017F].rsc"
    "..\..\..\epoc32\data\z\resource\apps\HelloWorldBasic.rsc" -"!:\resource\apps\HelloWorldBasic.rsc"
    "..\..\..\epoc32\data\z\private\10003a3f\import\apps\HelloWorldBasic_reg.rsc" -"!:\private\10003a3f\import\apps\HelloWorldBasic_reg.rsc"
    "..\..\..\epoc32\data\z\resource\apps\helloworldbasic_aif.mif" -"!:\resource\apps\helloworldbasic_aif.mif"
    "D:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\inc\Hello.txt" -"C:\private\A000017F\Hello.txt"

    ;required for application to be covered by backup/restore facility
    "backup_registration.xml" -"!:\private\A000017F\backup_registration.xml"

    and the 0x[A000017F].rsc is
    #include <startupitem.rh>
    RESOURCE STARTUP_ITEM_INFO HelloWorldBasic
    {
    executable_name = "!:\\sys\\bin\\HelloWorldBasic.exe";
    recovery = EStartupItemExPolicyNone;
    }



    but after installation, i can not find [A000017F].rsc in C:\private\A000017F in smartphone

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: How to auto start a program in S60 3rd Edition?

    Quote Originally Posted by classicsong
    "D:\Symbian\9.1\S60_3rd_MR\S60Ex\helloworldbasic\data\0x[A000017F].rsc" -"C:\private\A000017F\import\[A000017F].rsc"

    ...
    but after installation, i can not find [A000017F].rsc in C:\private\A000017F in smartphone
    Actually you have deployed the file to C:\private\A000017F\import, it might be a reason.
    Anyway, according to the SDK Help (I have never tried in fact) this file should be deployed to c:\private\101f875a\import\.

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: How to auto start a program in S60 3rd Edition?

    Hello,

    I am providing different steps to work with Startup List Management API:
    Steps for Autostarting an exe in 3rd edition( Startup LiSt MAnagement API )

    1) Create a .rss file.
    Ex: 06000001.rss
    ------------
    #include <startupitem.rh>

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



    2) Copy .rss file in your project's GROUP folder.


    3) Open your .mmp file.

    4) Change UID of your .exe For ex: 0x06000001 and write following entry in your .mmp file.

    START RESOURCE 06000001.rss //Added by Kiran
    END

    5) Rebuild your project.


    6) Open your .pkg file and replace UID as that of .mmp file(in our case 0x06000001)


    7) Add following entry in your .pkg file:
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\data\06000001.rsc"-"c:\private\101f875a\import\[06000001].rsc"


    8) That's it. Now just reboot your phone. You would find your .exe at startup.


    9) Cheers and Enjoy.


    Important NOTE: If there are multiple entries for different projects in the .pkg file, then
    #{"TestApplication"},(0x06000001), 1, 0, 1 must have rss filename Id(0x06000001).
    Kiran.

  7. #7
    Registered User
    Join Date
    Jan 2007
    Posts
    15

    Smile Re: How to auto start a program in S60 3rd Edition?

    I have started my code automatically. Thank all of you to give me so much important information.

  8. #8
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: How to auto start a program in S60 3rd Edition?

    Quote Originally Posted by kiran10182
    Hello,

    I am providing different steps to work with Startup List Management API:


    Kiran.
    Hi kiran,

    What are the capabilities required for it?
    Will it work with Self Signed?

    Regards.

  9. #9
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to auto start a program in S60 3rd Edition?

    hi,

    Startup management list API's works only for protected uids only and it won't work for unprotected uid's ...

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  10. #10
    Registered User
    Join Date
    Feb 2007
    Posts
    4

    Re: How to auto start a program in S60 3rd Edition?

    Hi,
    what do you mean by protected UIDs?

    I tried to follow the above but cannot get my application to autostart at power on.


    I signed the application with a Developer certificate, will this work?

    I am trying this on a Nokia NS5500

    Cheers
    /Dag

  11. #11
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: How to auto start a program in S60 3rd Edition?

    Hi,
    Quote Originally Posted by Dag
    Hi,
    what do you mean by protected UIDs?
    ...
    I signed the application with a Developer certificate, will this work?
    What is the UID of your application?
    Check in your .mmp file.
    For development purpose use UID3 between range: (0x00000000 to 0x0FFFFFFF)

    For relevant information regarding UIDs; refer to the SDK help:
    S60 3rd Edition SDK for Symbian OS, MR
    Introduction to S60 3rd Edition >> S60 Platform FAQ

    General Information about Symbian OS Platform Security
    Kiran.

  12. #12
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: How to auto start a program in S60 3rd Edition?

    Code:
    2.24 How does the UID range correspond to Symbian Signed and Developer Certificates? 
    What range should be used during development time and for the final release? 
    It is important to remember the two UID ranges used in the context of Symbian OS v9.1 onwards:
     the protected range and the unprotected range. 
    When an application is to be Symbian Signed (either during development using a 
    Developer Certificate or via the Symbian Signed program) it must use a UID from the protected 
    range.Specifically, the 0 range (0x00000000 to 0x0FFFFFFF) has been reserved for development
    purposes, and new UID allocations are made from the 2 range (0x20000000 to 0x2FFFFFFF). 
    Before being submitted for Symbian Signed testing, an application must have a UID allocated 
    from the 2 range.
    
    When an application is self-signed it must use a UID from the unprotected range. 
    Specifically, the E range (0xE0000000 to 0xEFFFFFFF) has been reserved for development 
    purposes,and new UID allocations are made from the A range (0xA0000000 to 0xAFFFFFFF). 
    Before being released to end users, a self-signed application must have a UID allocated from 
    the A range.For more information on the application UIDs, go to www.symbiansigned.com.
    Quoted from S60_Platform_Symbian_Platform_Security_FAQ_v2_0_en.pdf

  13. #13
    Registered User
    Join Date
    Nov 2006
    Posts
    31

    Re: How to auto start a program in S60 3rd Edition?

    Do I need to include the startup .rsc file in my backup_registration.xml - or will it be automatically backed up?

    Simon

  14. #14
    Registered User
    Join Date
    May 2006
    Posts
    8

    Re: How to auto start a program in S60 3rd Edition?

    I have used Startup List management API to autostart my application which is GUI based.
    On boot when my application starts, the main screen is shown in the phone.
    But my requirement is to start the application in background automatically without any user intervention.
    How can i do this?

    [<UID>].rss
    ============================================
    #include <startupitem.rh>
    RESOURCE STARTUP_ITEM_INFO listener_server
    {
    executable_name = "c:\\sys\\bin\\example.exe";
    recovery = EStartupItemExPolicyNone;
    }
    =============================================

    do i have to use another launcher exe which then starts my main GUI application in background using the RApaLsSession API!!!

    PS: I am migrating this application from symbian 8.x to 3rd edition. Previously i used the mdl approach to autostart. which i believe is deprecated by Nokia from 3rd edition onwards.

  15. #15
    Registered User
    Join Date
    Oct 2007
    Posts
    42

    Re: How to auto start a program in S60 3rd Edition?

    Quote Originally Posted by kiran10182 View Post
    Hello,

    I am providing different steps to work with Startup List Management API:


    Kiran.
    Thank you for ur code. I tried exactly as How u said and explained. But my application is not getting launched at the startup.
    iam facing problem at the 6th and 7th steps at the time of rebuilding and making sis file agin. It is not accepting the path.


    Can you be little more specific with a proper example and path.


    srk2007

Similar Threads

  1. S60 3rd Edition & OMA DRM
    By bfamler in forum Digital Rights Management & Content Downloading
    Replies: 13
    Last Post: 2009-04-13, 14:05
  2. S60 3rd Edition sdk emulator cannot be started up
    By ShirleyKing in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2009-03-11, 22:30
  3. S60 3rd edition Installation failed
    By Elza in forum Tools and SDK Feedback (Closed)
    Replies: 3
    Last Post: 2006-11-29, 11:37
  4. RVCT3.0 support in S60 3rd edition SDK
    By bounaux in forum Symbian Tools & SDKs
    Replies: 4
    Last Post: 2006-07-05, 16:01
  5. What is going on with Vibration on S60?
    By amd_rikus in forum Mobile Java General
    Replies: 3
    Last Post: 2006-06-16, 00:29

Posting Permissions

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