×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    102

    Start at startup

    I follow the guide on wiki.forum.nokia about this argument but nothing didn't work.
    I do this step:

    1- I create my file .rss: ec907929.rss
    with this line:
    Code:
    #include <startupitem.rh>
     
    RESOURCE STARTUP_ITEM_INFO startexe
    {
        executable_name = "\\sys\\bin\\Listening.exe";
        recovery = EStartupItemExPolicyNone;
    }
    I put my .rss file in my data folder

    2- I change my .mpp file from:
    Code:
    TARGET			Listening.exe
    UID			   0x100039CE 0xEC907929
    VENDORID	  	  0
    TARGETTYPE		exe
    EPOCSTACKSIZE	 0x5000
    
    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom
    USERINCLUDE	   ..\inc ..\data
    
    
    
    SOURCEPATH		..\data
    START RESOURCE	Listening.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE	Listening_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    
    LIBRARY			euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY			commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib 
    LIBRARY			eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY			etext.lib gdi.lib egul.lib insock.lib
    LIBRARY			ecom.lib InetProtUtil.lib http.lib esock.lib etel3rdparty.lib gsmu.lib msgs.lib mtur.lib smcm.lib apgrfx.lib
    
    LANG 				05
    
    START BITMAP	Listening.mbm
    HEADER
    TARGETPATH		\resource\apps
    SOURCEPATH		..\gfx
    SOURCE	c12,1	list_icon.bmp list_icon_mask.bmp
    END
    
    SOURCEPATH		..\src
    
    
    SOURCE ListeningContainer.cpp ListeningContainerView.cpp ListeningDocument.cpp ListeningAppUi.cpp ListeningApplication.cpp SmsHandler.cpp GestioneChiamata.cpp
    
    CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
    to:

    Code:
    TARGET			Listening.exe
    UID			   0x100039CE 0xEC907929
    VENDORID	  	  0
    TARGETTYPE		exe
    EPOCSTACKSIZE	 0x5000
    
    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom
    USERINCLUDE	   ..\inc ..\data
    
    
    
    SOURCEPATH		..\data
    START RESOURCE	Listening.rss
    HEADER
    TARGETPATH resource\apps
    END //RESOURCE
    
    START RESOURCE	Listening_reg.rss
    TARGETPATH 	  \private\10003a3f\apps
    END //RESOURCE
    
    SOURCEPATH		..\data
    START RESOURCE	ec907929.rss
    END
    
    LIBRARY			euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY			commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib 
    LIBRARY			eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY			etext.lib gdi.lib egul.lib insock.lib
    LIBRARY			ecom.lib InetProtUtil.lib http.lib esock.lib etel3rdparty.lib gsmu.lib msgs.lib mtur.lib smcm.lib apgrfx.lib
    
    LANG 				05
    
    START BITMAP	Listening.mbm
    HEADER
    TARGETPATH		\resource\apps
    SOURCEPATH		..\gfx
    SOURCE	c12,1	list_icon.bmp list_icon_mask.bmp
    END
    
    SOURCEPATH		..\src
    
    
    SOURCE ListeningContainer.cpp ListeningContainerView.cpp ListeningDocument.cpp ListeningAppUi.cpp ListeningApplication.cpp SmsHandler.cpp GestioneChiamata.cpp
    
    CAPABILITY NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment
    3- I rebuild my project but it Gives me this error:
    Code:
    Severity and Description	Path	Resource	Location	Creation Time	Id
    make[1]: *** No rule to make target `\Symbian\Carbide\workspace\Listening\data\ec907929.rss', needed by `\Symbian\9.1\S60_3rd_MR\EPOC32\DATA\ec907929.R05'.  Stop.		Listening	line 0	1182269574781	1046
    4- I did't care about the error and i change my .pkg file from:

    Code:
    ; Listening.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"Listening"},(0xEC907929),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
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Listening.exe"		-"!:\sys\bin\Listening.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\Listening.r05"		-"!:\resource\apps\Listening.r05"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\Listening_reg.r05"	-"!:\private\10003a3f\import\apps\Listening_reg.r05"
    "$(EPOCROOT)epoc32\data\z\resource\apps\Listening_aif.mif" -"!:\resource\apps\Listening_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\Listening.mbm" -"!:\resource\apps\Listening.mbm"
    
    ; Add any installation notes if applicable
    ;"Listening.txt"					  -"!:\private\0xEC907929\Listening.txt"
    to

    Code:
    ; Listening.pkg
    ; This is an auto-generated PKG file by Carbide.
    ; This file uses variables specific to Carbide builds that will not work
    ; on command-line builds. If you want to use this generated PKG file from the
    ; command-line tools you will need to modify the variables with the appropriate
    ; values: $(EPOCROOT), $(PLATFORM), $(TARGET)
    ; Also, the resource file entries should be changed to match the language
    ; used in the build. For example, if building for LANGUAGE_01, change the file
    ; extensions .rsc to .r01.
    ;
    ;Language - standard language definitions
    &EN
    
    ; standard SIS file header
    #{"Listening"},(0xEC907929),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
    ;You should change the source paths to match that of your environment
    ;<source> <destination>
    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\Listening.exe"		-"!:\sys\bin\Listening.exe"
    "$(EPOCROOT)Epoc32\data\z\resource\apps\Listening.r05"		-"!:\resource\apps\Listening.r05"
    "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\Listening_reg.r05"	-"!:\private\10003a3f\import\apps\Listening_reg.r05"
    "$(EPOCROOT)epoc32\data\z\resource\apps\Listening_aif.mif" -"!:\resource\apps\Listening_aif.mif"
    "$(EPOCROOT)epoc32\data\z\resource\apps\Listening.mbm" -"!:\resource\apps\Listening.mbm"
    
    ;"\epoc32\data\ec907929.rsc"- "c:\private\101f875a\import\[ec907929].rsc"
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\Data\ec907929.rsc"-"c:\private\101f875a\import\[ec907929].rsc"
    
    ; Add any installation notes if applicable
    ;"Listening.txt"					  -"!:\private\0xEC907929\Listening.txt"
    Now what can i do?

    I'm working with Nokia E61

    Thanks
    Last edited by earendil; 2007-06-20 at 15:30.

  2. #2
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    102

    Re: Start at startup

    I find my problem, my resource file compiled has extension .r05 no .rsc
    But when i put my program on device it doesn't work.
    What can I try to do?

  3. #3
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Bangalore
    Posts
    200

    Smile Re: Start at startup

    It seems everything is fine,Might some silly mistake.

  4. #4
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    102

    Re: Start at startup

    I check on my proces device that there isn't a proces with uid: 101f875a, we are sure that should i put my .r05 file in the folder c:\private\101f875a\import\[yyyy].r05 ?
    Thanks

  5. #5
    Registered User
    Join Date
    Jan 2007
    Posts
    10

    Re: Start at startup

    try like this
    C:\Symbian\9.1\S60_3rd_MR\Epoc32\Data\ec907929.r05"-"c:\private\101f875a\import\[ec907929].rsc"

    This should work.

  6. #6
    Registered User
    Join Date
    May 2007
    Posts
    48

    Re: Start at startup

    this simple example works for me maybe it helps:

    06000001.rss
    #include <startupitem.rh>

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

    mmp file
    TARGET PodpisanyKonsolaTest.exe
    TARGETTYPE exe
    UID 0x06000001

    USERINCLUDE ..\inc
    SYSTEMINCLUDE \epoc32\include

    START RESOURCE 06000001.rss
    END

    SOURCEPATH ..\src
    SOURCE PodpisanyKonsolaTest.cpp

    LIBRARY euser.lib

    pkg file
    ; UID is the exe's UID
    ;
    #{"PodpisanyKonsolaTest EXE"},(0x06000001),1,0,0

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

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

    ;Unique Vendor name
    :"Vendor"

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\PodpisanyKonsolaTest.exe" -"c:\sys\bin\PodpisanyKonsolaTest.exe"
    "$(EPOCROOT)Epoc32\data\z\06000001.rsc"-"c:\private\101f875a\import\[06000001].rsc"


    This is a console application, it is signed with developers certifcate
    you can generate certificate request using DevCert, and send it to symbian signed to get the certificate, everything last about 10miuntes

  7. #7
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    102

    Re: Start at startup

    All work now with this change in filem .pkg:

    Code:
    "C:\Symbian\9.1\S60_3rd_MR\Epoc32\Data\ec907929.r05"-"c:\private\101f875a\import\[ec907929].rsc"
    Thanks a Lot

  8. #8
    Registered User
    Join Date
    Feb 2009
    Posts
    37

    Re: Start at startup

    Quote Originally Posted by marcinkrol84 View Post
    this simple example works for me maybe it helps:

    06000001.rss
    #include <startupitem.rh>

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

    mmp file
    TARGET PodpisanyKonsolaTest.exe
    TARGETTYPE exe
    UID 0x06000001

    USERINCLUDE ..\inc
    SYSTEMINCLUDE \epoc32\include

    START RESOURCE 06000001.rss
    END

    SOURCEPATH ..\src
    SOURCE PodpisanyKonsolaTest.cpp

    LIBRARY euser.lib

    pkg file
    ; UID is the exe's UID
    ;
    #{"PodpisanyKonsolaTest EXE"},(0x06000001),1,0,0

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

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

    ;Unique Vendor name
    :"Vendor"

    "$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\PodpisanyKonsolaTest.exe" -"c:\sys\bin\PodpisanyKonsolaTest.exe"
    "$(EPOCROOT)Epoc32\data\z\06000001.rsc"-"c:\private\101f875a\import\[06000001].rsc"


    This is a console application, it is signed with developers certifcate
    you can generate certificate request using DevCert, and send it to symbian signed to get the certificate, everything last about 10miuntes


    its #include <startupitem.hrh>
    not #include <startupitem.rh>

  9. #9
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,335

    Re: Start at startup

    Quote Originally Posted by manish88 View Post
    its #include <startupitem.hrh>
    not #include <startupitem.rh>
    I appreciate your willing of helping but you should also consider a fact that the original question was asked and solved before almost 2 years. Have you noticed that?
    Nokia Developer Wiki Moderation team

  10. #10
    Nokia Developer Champion
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Start at startup

    lol. જાગ્યા ત્યારથી સવાર

    Also given wrong suggestion. #include <startupitem.rh> is ok.

Similar Threads

  1. How to start MIDLet app on mobile startup?
    By corej2me in forum Mobile Java General
    Replies: 1
    Last Post: 2006-12-18, 18:26
  2. Replies: 1
    Last Post: 2006-08-09, 11:37
  3. Replies: 2
    Last Post: 2006-08-08, 12:21
  4. start on device startup
    By andrei_s in forum Symbian
    Replies: 1
    Last Post: 2004-12-13, 06:32
  5. Replies: 3
    Last Post: 2003-04-09, 18:54

Posting Permissions

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