Discussion Board

Results 1 to 9 of 9

Threaded View

  1. #1
    Registered User
    Join Date
    Jun 2008

    Question Help:how to dynamically call other application in the flash?

    Problem: How to dynamically call other application in the flash? This function can be implemented with c++ as follows.
    Question: Does flashlite provides an api like RApaLsSession.StartDocument()? If not, is there any other method to solve this problem?

    void RunApp{

    RApaLsSession apaLsSession;

    const TUid KOSSBrowserUidValue = {0x20003ADB}; //App UID
    HBufC* param = HBufC::NewLC(256); // Symbian string

    param->Des().Copy(_L("-open e:\\preview\\VI_Fearless-qvga.smv")); //App argument

    TUid id(KOSSBrowserUidValue);

    TApaTaskList taskList(CEikonEnv::Static()->WsSession());

    TApaTask task = taskList.FindApp(id);

    if(task.Exists()) //if App already run, bring it foregroud
    HBufC8* param8 = HBufC8::NewLC(param->Length());
    task.SendMessage(TUid::Uid(0), *param8); // UID not used
    else //if App not Run, start it
    TThreadId thread;
    User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue, thread));

    CleanupStack::PopAndDestroy(param); //clean up CleanupStack

    Last edited by stormbee; 2008-06-05 at 08:22.

Similar Threads

  1. Call an EXE application from Java (J2ME)
    By rcaboni in forum Symbian C++
    Replies: 4
    Last Post: 2009-08-11, 13:57
  2. My application should call
    By mayankkedia in forum Symbian C++
    Replies: 1
    Last Post: 2006-11-28, 04:34
  3. Ownership of an outgoing call initiated by default phone application
    By roji in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-11-21, 22:53
  4. How to activate an application when a phone call is received on the device
    By yogesh14 in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2005-11-24, 10:00
  5. Replies: 1
    Last Post: 2005-08-30, 10:17

Posting Permissions

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