×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    11

    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?
    Thanks!


    void RunApp{

    RApaLsSession apaLsSession;

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

    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
    {
    task.BringToForeground();
    HBufC8* param8 = HBufC8::NewLC(param->Length());
    param8->Des().Append(*param);
    task.SendMessage(TUid::Uid(0), *param8); // UID not used
    CleanupStack::PopAndDestroy(param8);
    }
    else //if App not Run, start it
    {
    if(!apaLsSession.Handle())
    {
    User::LeaveIfError(apaLsSession.Connect());
    }
    TThreadId thread;
    User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue, thread));
    apaLsSession.Close();
    }

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

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

  2. #2
    Registered User
    Join Date
    Jul 2005
    Location
    italy
    Posts
    72

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

    Hi Stormbee,

    Flash Lite has a dedicated fscommand to perform this... the syntax is as follow:

    status = fscommand("launch", "z:\\system\\apps\\browser\\browser.app,http://wap.yahoo.com");
    }

    This command for example launch a specific webpage on the phone browser. You can find a complete description for this command in Flash Ide help. Hope this helps.

    Leonardo
    [url]http://www.leonardorisuleo.info/blog/[/url]

  3. #3
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

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

    Remember also that you do not need the full path, on S60 3.x you can simply use the exe name as they are all in the same folder.
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  4. #4
    Registered User
    Join Date
    Jun 2008
    Posts
    11

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

    Thank you very much for your reply!
    I tried to use fscommand as follows on N77(s60 v3,flash lite 1.1). Unfortunately, it can't work

    fscommand("Launch", "browser.exe,http://www.google.cn");

  5. #5
    Product Specialist
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191

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

    try this:

    fscommand("launch", "browser.exe,http://bbc.co.uk");
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  6. #6
    Registered User
    Join Date
    Jun 2008
    Posts
    11

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

    Thanks!
    I installed the flashlite2_1_symbian_s60V3.SIS in N77, and then the fscommand worked well(automatically run the browser and connect to the website)!
    But it didn't work in the default flash lite in N77. Maybe the default flash lite is too obsolete?

    Quote Originally Posted by markadoherty View Post
    try this:

    fscommand("launch", "browser.exe,http://bbc.co.uk");

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,560

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

    The N77 has by default Flash Lite v1.1 and probably without the required support.

  8. #8
    Registered User
    Join Date
    Jun 2008
    Posts
    11

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

    yeah, I think so
    Quote Originally Posted by petrib View Post
    The N77 has by default Flash Lite v1.1 and probably without the required support.

  9. #9
    Registered User
    Join Date
    Jun 2008
    Posts
    11

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

    Thank you!~~
    Quote Originally Posted by bytesm View Post
    Hi Stormbee,

    Flash Lite has a dedicated fscommand to perform this... the syntax is as follow:

    status = fscommand("launch", "z:\\system\\apps\\browser\\browser.app,http://wap.yahoo.com");
    }

    This command for example launch a specific webpage on the phone browser. You can find a complete description for this command in Flash Ide help. Hope this helps.

    Leonardo

Similar Threads

  1. Call an EXE application from Java (J2ME)
    By rcaboni in forum Symbian
    Replies: 4
    Last Post: 2009-08-11, 13:57
  2. My application should call
    By mayankkedia in forum Symbian
    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
  •  
×