Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User eternalbeyond's Avatar
    Join Date
    Mar 2006
    Posts
    41
    i can run APP application in the MDL autostart file, but i can not run exe Application, please help me! thanks

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Try RProcess::Create, Resume, Close. Test on target device, autostart on emulator is a different story.

  3. #3
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    Hello dear,
    U absolutely can run an exe from autostart.

    U need to grab one UID from application wizard n right from there abort the creation of that application.

    1)Now paste this UID in yr exe's MMP file n in UId file.
    2)Then Paste this UID at : starter_uid
    3)Pass yr exe path at:fnAppPath
    4)Restart yr Phone.
    5)It's time to party man.

    .....
    ....
    ...
    void CclAutostart::StartAppThreadFunctionL()
    {
    #ifdef __WINS__
    const TUid starter_uid= { 0x05CCC0B0 };
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    _LIT(filen, ""); // dummy
    TThreadId dummy;
    User::LeaveIfError( ls.StartDocument(filen, starter_uid, dummy) );
    CleanupStack::PopAndDestroy();
    #else
    TFileName fnAppPath = _L("\\system\\apps\\starter\\starter.exe");
    RProcess server;

    CleanupClosePushL(server);
    User::LeaveIfError(server.Create(fnAppPath, _L("")));
    server.Resume();

    CleanupStack::PopAndDestroy();
    #endif

    }


    Regards,
    Kiran.

  4. #4
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    Hi Kiran,

    Your code seems to work great both on device and Emulator.
    My problem is while installing the pkg file on device it should always be installed on the phone memory.
    Which need not be the case. The user can install it on the MMC as well.
    How can I ensure that the recognizer looks for the exe in the installed directory and not just C:.

    Thanks & Regards.

  5. #5
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    CompleteWithAppPath() doesnt seem to work.

  6. #6
    Nokia Developer Champion kiran10182's Avatar
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,236
    Hello dear,

    Check out the following link:
    http://discussion.forum.nokia.com/fo...ad.php?t=85731

    I hope it will help u.

    Regards.
    Kiran.

  7. #7
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    Thanks Kiran.
    I already tried that.

    http://discussion.forum.nokia.com/fo...=Autostart+mmc

  8. #8
    Regular Contributor Shilpa13's Avatar
    Join Date
    Apr 2006
    Location
    India
    Posts
    383
    Hi!
    U can use the namespace NEikonEnvironment if u r using 2nd edition
    U can use NEikonEnvironment::ApplicationDriveAndPath() for ur purpose.
    See the SDK for more details.

    Hope this helps u.
    Regards,
    Shilpa Kulkarni

  9. #9
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    Hi Shilpa,

    That wont help me because I need to search for an exe.
    NEikonEnvironment::ApplicationDriveAndPath() will return me the address
    of my recognizer.

    Regards,
    Tina

  10. #10
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by Tina_Tibrewal
    That wont help me because I need to search for an exe.
    NEikonEnvironment::ApplicationDriveAndPath() will return me the address
    of my recognizer.
    In practice it will not. NEikonEnvironment uses your ...AppUi class, and recognizers have not got one (they are not applications anyway, thus ApplicationDriveAndPath or CompleteWithAppPath have nothing to do with them).
    Try using TFindFile::FindByDir to locate a file with known name and path but unknown drive.

  11. #11
    Regular Contributor Tina_Tibrewal's Avatar
    Join Date
    Sep 2006
    Posts
    280
    Thanks a lot Wizard_Hu..

    FindByDir() Solved the problem.

Similar Threads

  1. Cannot run command line GCCE HelloWorldBasic on Emulator
    By loginssuck in forum Symbian Tools & SDKs
    Replies: 33
    Last Post: 2008-06-21, 12:58
  2. Replies: 1
    Last Post: 2005-05-26, 14:22
  3. Replies: 0
    Last Post: 2004-03-30, 00:13
  4. Replies: 0
    Last Post: 2002-06-10, 12:24
  5. How to Access 9210 Dbms file from my desktop application?
    By Nokia_Archive in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-06-03, 03:46

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved