×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    167

    Auto-Start Property

    Hello Friends,


    I have already discussed this point "how to start application on phone restart" but the question is what will be the effect if we include the autostart application in other non-autostart application ( autostart .pkg -> non-autostart .pkg ) to create one installation sis file.

    Once i have tried by including my autostart application into my GUI application ( autostart-Console .pkg -> GUI .pkg ) , but i didnt get success. And then tried by doing vice versa, after that my application is able to start on restart.



    Now, suppose i have three application, One is GUI and another Two is AutoStart-CONSOLE applications.

    And i want two create one sis file, also i want both console applcation to start on device reboot. Then what should be the arrangement ?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Auto-Start Property

    It is documented (http://library.forum.nokia.com/index...ification.html is a link for the on-line one, just you will have to open it twice)
    Check the 4th bullet in section "Using Startup List Management API"

  3. #3
    Registered User
    Join Date
    Jan 2011
    Posts
    167

    Re: Auto-Start Property

    Quote Originally Posted by wizard_hu_ View Post
    Check the 4th bullet in section "Using Startup List Management API"
    according to your post, i checked the following :-
    ■In case of an embedded package, the control file must be included in the parent package.
    but as discussed in #1
    Once i have tried by including my autostart application into my GUI application ( autostart-Console .pkg -> GUI .pkg ) , but i didnt get success.
    In above case, i have included all needed files of Autostart-Console into GUI .pkg file and .mmp file, even though my autostart application was unable to start but individually, its working just fine.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Auto-Start Property

    Just to make sure, is this what you have tried?
    Auto-started-app.pkg
    Code:
    #{"Auto-started-app"),(0xA1234567),1,0,0,TYPE=SA
    ...
    "..."-"!:\sys\bin\auto-started-app.exe"
    "..."-"c:\private\101f875a\import\[A1234567].rsc"
    and it happily worked

    Then embedding:
    GUI.pkg
    Code:
    #{"GUI"},(0xABCDEF12),1,0,0,TYPE=SA
    ...
    @"Auto-started-app.sisx",(0xA1234567)
    "..."-"c:\private\101f875a\import\[ABCDEF12].rsc"
    So
    - the startup resource was put into the outer package
    - and its name matches with the UID of the outer package?
    Forgetting any of the two will result in a non-working attempt.

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    167

    Re: Auto-Start Property

    No, i have not done like this.
    here you making [ABCDEF12].rsc file for GUI too, and make it "TYPE=SA"

    what i have done is as below :
    ...
    "..."-"!:\sys\bin\auto-started-app.exe"
    "..."-"c:\private\101f875a\import\[A1234567].rsc"
    just put the above files in the GUI.pkg.


    Here you have create [A1234567].rsc for GUI, so in this we also have to put the code that is in [A1234567].rsc

    then what is the use of [A1234567].rsc.

  6. #6
    Registered User
    Join Date
    Jan 2011
    Posts
    167

    Re: Auto-Start Property

    Also for 2nd edition, generally we are using the autostart application which work as server and start the main application. as below :-

    Code:
    #else
    	TFileName fnAppPath = _L("\\system\\programs\\xyz.exe");
    
    
    	RProcess server;
    
    	CleanupClosePushL(server);
    	User::LeaveIfError(server.Create(fnAppPath, _L("")));
    	server.Resume();
    
    	CleanupStack::PopAndDestroy();
    #endif

    So in this manner, can we start more than one application, and if not than pls tell me the way.

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Auto-Start Property

    Quote Originally Posted by dilipsinh View Post
    No, i have not done like this.
    ...
    Whatever you have tried, the rules are simple
    - the X in [X].rsc is the UID of the .pkg file (what is highlighted in the #-line), and it has to be in the outermost installer file, so the one you are installing directly
    - a single [X].rsc can start multiple .exe files, regardless of their UID-s.

  8. #8
    Registered User
    Join Date
    Jan 2011
    Posts
    167

    Re: Auto-Start Property

    And for 2nd edition, (post #6)

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,750

    Re: Auto-Start Property

    Quote Originally Posted by dilipsinh View Post
    And for 2nd edition, (post #6)
    If that was a question, the answer is yes.

  10. #10
    Registered User
    Join Date
    Aug 2008
    Posts
    35

    Re: Auto-Start Property

    Hi!

    You should be aware that due to a bug in Symbian3 your application is not autostarted when the phone has Autolock turned on and during phone startup user types the code after small delay (like 10 sec).

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. Nokia-MIDlet-auto-start property doesnt work on all Series 40
    By geetanjalip in forum Mobile Java General
    Replies: 5
    Last Post: 2010-02-04, 14:31
  3. Auto start and Auto installation
    By sunithadevim in forum Symbian
    Replies: 8
    Last Post: 2008-02-07, 04:58
  4. Midlet auto start
    By Shosio in forum Mobile Java General
    Replies: 4
    Last Post: 2008-01-24, 10:10
  5. Auto start
    By vodkaloon in forum Symbian
    Replies: 6
    Last Post: 2004-11-14, 21:35

Posting Permissions

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