×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Question Auto start isnt working!!

    hi,
    i am trying to add the auto start to my application , for that i created a .rss file containing the following:
    #include <startupitem.rh>

    RESOURCE STARTUP_ITEM_INFO startexe
    {
    executable_name = "!:\\sys\\bin\\U_Test.exe";
    recovery = EStartupItemExPolicyNone;
    }
    also i added the following to my .pro file
    symbian {
    autoStartBlock = \
    "SOURCEPATH ." \
    "START RESOURCE 200411C7.rss" \
    "END"

    MMP_RULES += autoStartBlock

    deployRscFile = "\"$${EPOCROOT}epoc32/data/200411C7.rsc\" - \
    \"C:/private/101f875a/import/[200411C7].rsc\""
    deployFiles.pkg_postrules += deployRscFile
    DEPLOYMENT += deployFiles
    }

    symbian {
    rssresources = "SOURCEPATH ." \
    "START RESOURCE dialogs_0x200411C7.rss" \
    "HEADER" \
    "TARGETPATH resource\apps" \
    "END"
    MMP_RULES += rssresources

    addFiles.pkg_postrules = "\"/NokiaQtSDK/Symbian/SDK/epoc32/data/z/resource/apps/dialogs_0x200411C7.rsc\" - \"!:\\resource\\apps\\dialogs_0x200411C7.rsc\""
    DEPLOYMENT += addFiles
    OTHER_FILES += nativesymbiandlg.hrh
    }
    0x200411C7 is my uid3
    and U_Test is my project name. The second symbian paragraph is for waitdialog...the application works without any error when it is executed.
    but my application isnt running when i reboot the device!! what is wrong here
    i used the auto start for a simple application that doesnt contain anything except the first paragraph:
    symbian {
    autoStartBlock = \
    "SOURCEPATH ." \
    "START RESOURCE 200411C7.rss" \
    "END"

    MMP_RULES += autoStartBlock

    deployRscFile = "\"$${EPOCROOT}epoc32/data/200411C7.rsc\" - \
    \"C:/private/101f875a/import/[200411C7].rsc\""
    deployFiles.pkg_postrules += deployRscFile
    DEPLOYMENT += deployFiles
    }
    and it worked!!! what should i do to make it work here?!??!?
    Thank you

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Auto start isnt working!!

    Quote Originally Posted by zzizz View Post
    hi,
    i am trying to add the auto start to my application , for that i created a .rss file containing the following:

    also i added the following to my .pro file


    0x200411C7 is my uid3
    and U_Test is my project name. The second symbian paragraph is for waitdialog...the application works without any error when it is executed.
    but my application isnt running when i reboot the device!! what is wrong here
    i used the auto start for a simple application that doesnt contain anything except the first paragraph:

    and it worked!!! what should i do to make it work here?!??!?
    Thank you
    Check this article :

    How Qt applications start at reboot

    Best regards,

  3. #3
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Auto start isnt working!!

    Quote Originally Posted by rahulvala View Post
    Check this article :

    How Qt applications start at reboot

    Best regards,
    hi thx for your reply,
    the link sent by you is exactly what i am using
    and it is not working in my project!!
    note if i used it just on simple app that do nothing it is working!!

    is it related that i have now 2 "END" in my mmp file?
    one for the autostart:
    symbian {
    autoStartBlock = \
    "SOURCEPATH ." \
    "START RESOURCE 200411C7.rss" \
    "END"

    MMP_RULES += autoStartBlock
    and the other for the wait dialog
    symbian {
    rssresources = "SOURCEPATH ." \
    "START RESOURCE dialogs_0x200411C7.rss" \
    "HEADER" \
    "TARGETPATH resource\apps" \
    "END"
    MMP_RULES += rssresources
    i dont know what is happening
    it is so weird !! i tried to create other project with other name and uid and used the same classes of U_Test and that didnt work too!!

  4. #4
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Auto start isnt working!!

    You have two ENDs because you also have two STARTs, so that is not a problem. Still, the autostart is Symbian specific so you may want to read again how the Startup List Management API works in Symbian and then verify that your project's generated files (the *.rss and *_template.pkg) have the correct content.

    If all OK, verify how you sign your application, self-signing is not enough to enable the autostart feature.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  5. #5
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Auto start isnt working!!

    Quote Originally Posted by ltomuta View Post
    You have two ENDs because you also have two STARTs, so that is not a problem. Still, the autostart is Symbian specific so you may want to read again how the Startup List Management API works in Symbian and then verify that your project's generated files (the *.rss and *_template.pkg) have the correct content.

    If all OK, verify how you sign your application, self-signing is not enough to enable the autostart feature.
    hi ltomuta,
    i have compared the *_template.pkg between my application that the autostart is working on( suppose the name of the app is aa) and U_test application
    i noticed that in aa application, the template.pkg contains the following:
    ; Manual PKG post-rules from PRO files
    "/NokiaQtSDK/Symbian/SDK/epoc32/data/2003DD7A.rsc" - "C:/private/101f875a/import/[2003DD7A].rsc"
    which is for the autostart,..and in U_Test this isn't found in the file..so thats why the autostart is not working
    so what should i do to fix that?
    as for signing the app, i am signing the application with a developer certificate but i should mention something:
    my application contains another application( testingHide.sis) ,the U_Test is signed with developer certificate and testingHide.sis is self signed..
    i added the following to my .pro to include the second app
    symbian {
    customrules.pkg_postrules = \
    "@\"testingHide.sis\",(0xe8294dd8)"
    DEPLOYMENT += customrules
    }
    when U_Test is executed then the testingHide will be started using QProcess.

    so i just added the autostart code in my U_Test.pro file and kept the other app self signed without adding anything to testingHide.pro file
    any help?
    Thank you

  6. #6
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Auto start isnt working!!

    Quote Originally Posted by zzizz View Post
    Quote Originally Posted by ltomuta View Post
    You have two ENDs because you also have two STARTs, so that is not a problem. Still, the autostart is Symbian specific so you may want to read again how the Startup List Management API works in Symbian and then verify that your project's generated files (the *.rss and *_template.pkg) have the correct content.

    If all OK, verify how you sign your application, self-signing is not enough to enable the autostart feature.
    hi ltomuta,
    i have compared the *_template.pkg between my application that the autostart is working on( suppose the name of the app is aa) and U_test application
    i noticed that in aa application, the template.pkg contains the following:
    ; Manual PKG post-rules from PRO files
    "/NokiaQtSDK/Symbian/SDK/epoc32/data/2003DD7A.rsc" - "C:/private/101f875a/import/[2003DD7A].rsc"
    which is for the autostart,..and in U_Test this isn't found in the file..so thats why the autostart is not working
    so what should i do to fix that?
    Yes, you must add that type of entry to your application's *_template.pkg file, and for that you need to add a deployment statement to your *.pro script, as illustrated in step 2. of http://www.developer.nokia.com/Commu...ymbian_devices

    Quote Originally Posted by zzizz View Post
    as for signing the app, i am signing the application with a developer certificate but i should mention something:
    my application contains another application( testingHide.sis) ,the U_Test is signed with developer certificate and testingHide.sis is self signed..
    i added the following to my .pro to include the second app
    symbian {
    customrules.pkg_postrules = \
    "@\"testingHide.sis\",(0xe8294dd8)"
    DEPLOYMENT += customrules
    }
    when U_Test is executed then the testingHide will be started using QProcess.

    so i just added the autostart code in my U_Test.pro file and kept the other app self signed without adding anything to testingHide.pro file
    any help?
    Thank you
    The "testingHide" app is irrelevant for the autostart issue, since as far as I understand it is not the app to be autostarted.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Auto start isnt working!!

    You need to add a deployment statement to your *.pro script, as illustrated in step 2. of http://www.developer.nokia.com/Commu...ymbian_devices
    the deployment is already there..you can see it in the #1 comment:
    symbian {
    autoStartBlock = \
    "SOURCEPATH ." \
    "START RESOURCE 200411C7.rss" \
    "END"

    MMP_RULES += autoStartBlock

    deployRscFile = "\"$${EPOCROOT}epoc32/data/200411C7.rsc\" - \
    \"C:/private/101f875a/import/[200411C7].rsc\""
    deployFiles.pkg_postrules += deployRscFile
    DEPLOYMENT += deployFiles
    }
    and you're right about testingHide app ..it is irrelevant for the autostart..but i thought maybe the problem is from there since i cant find till now any real reason for the prob

  8. #8
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Auto start isnt working!!

    hi,
    i guess the problem is solved now and found the problem
    i was adding later in my pro a script to remove the db file when uninstalling the app with the same deployment name of the autostart
    symbian {
    deployRscFile = \
    "\"\"-\"C:\UTest\mytest.db.sqlite\",FN"
    deployFiles.pkg_postrules += deployRscFile
    DEPLOYMENT += deployFiles
    }
    so the autostart wasnt added to the template.pkg..instead it was replaced with this .

    ""-"C:\UTest\mytest.db.sqlite",FN
    so when i changed the name to
    symbian {
    deployRscFile1 = \
    "\"\"-\"C:\UTest\mytest.db.sqlite\",FN"
    deployFiles1.pkg_postrules += deployRscFile1
    DEPLOYMENT += deployFiles1
    }
    then the autostart was added to the mmp..i dont have a device to test it right now but i guess that will be enough and will work
    thank you a lot for your help
    Regards

  9. #9
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Auto start isnt working!!

    Yes, it does appear to be there, but if it doesn't show up in the *_template.pkg then something is wrong with that script, it does not get executed or it has an error.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  10. #10
    Registered User
    Join Date
    Mar 2010
    Posts
    138

    Re: Auto start isnt working!!

    Quote Originally Posted by ltomuta View Post
    Yes, it does appear to be there, but if it doesn't show up in the *_template.pkg then something is wrong with that script, it does not get executed or it has an error.
    thank you..refering to post #8

  11. #11
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: Auto start isnt working!!

    Great. :-)
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. console app doesn't start at auto start
    By somnathbanik in forum Symbian
    Replies: 15
    Last Post: 2010-12-06, 15:05
  2. Auto start and Auto installation
    By sunithadevim in forum Symbian
    Replies: 8
    Last Post: 2008-02-07, 04:58
  3. Replies: 13
    Last Post: 2008-01-21, 12:11
  4. How to do auto-start on S60 3rd?
    By nly in forum VoIP
    Replies: 0
    Last Post: 2007-02-23, 21:05
  5. Replies: 2
    Last Post: 2006-03-11, 09: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
  •  
×