×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267

    How to launch the browser on S60 3rd Edition with and without FP1?

    We want to get our application to have a working solution for starting the browser that works on both S60 3rd Edition and S60 3rd Edition, FP1. The solution that we have now only works on S60 3rd Edition, FP1. The reason for this is that we use the browser UID for S60 3rd Edition, FP1 and S60 3rd Edition without FP1 has another UID. This is explained in this article:

    http://wiki.forum.nokia.com/index.ph..._specified_URL

    How can I implement a solution that starts the browser on both S60 3rd Edition with FP1 and without FP1? Or do I have to make different versions of the application, one for S60 3rd Edition with FP1 and one for without S60 3rd Edition FP1?
    This is my code:

    void CAnimationContainer:penURL()
    {

    RApaLsSession apaLsSession;
    const TUid KOSSBrowserUidValue = {0x10008D39}; // 0x1020724D for S60 3rd Ed ???
    HBufC* param = HBufC::NewLC(64);
    //parameters that are passed as command line arguments when launching the OSS Browser:
    /*
    * 4. Start/Continue the browser specifying a URL
    => Parameter = “4”+” <Space>“+”<Url>”*/
    param->Des().Copy(_L("4 http://wap.sharewire.net/buy/?product=416855/"));
    TUid id(KOSSBrowserUidValue);
    TApaTaskList taskList(CEikonEnv::Static()->WsSession());
    TApaTask task = taskList.FindApp(id);
    if(task.Exists())
    {
    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(!apaLsSession.Handle())
    {
    User::LeaveIfError(apaLsSession.Connect());
    }
    TThreadId thread;
    User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue, thread));
    apaLsSession.Close();
    }
    CleanupStack::PopAndDestroy(param);

    }

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: How to launch the browser on S60 3rd Edition with and without FP1?

    In the SDK plugin pack, there is a Browser Launcher API, which is available in the plugin packs of MR, FP1, FP2 and S60 5th. You can try that out.
    Nokia Developer Wiki Moderation team

  3. #3
    Regular Contributor
    Join Date
    Feb 2005
    Location
    Kista, Sweden
    Posts
    267

    Re: How to launch the browser on S60 3rd Edition with and without FP1?

    I see, but I assume that will not work on the devices without FP1? I am looking for a solution that works on all S60 3rd Edition devices.

    Quote Originally Posted by kiran10182 View Post
    In the SDK plugin pack, there is a Browser Launcher API, which is available in the plugin packs of MR, FP1, FP2 and S60 5th. You can try that out.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: How to launch the browser on S60 3rd Edition with and without FP1?

    Quote Originally Posted by MobileVisuals View Post
    I see, but I assume that will not work on the devices without FP1? I am looking for a solution that works on all S60 3rd Edition devices.
    Why do you assume so? I clearly stated that it will work on all of them. The API is avaialble on all the S60 3rd edition platforms and also on S60 5th edition.

    Search for Browser Launcher API in this link: http://wiki.forum.nokia.com/index.php/SDK_API_Plug-in
    Nokia Developer Wiki Moderation team

Posting Permissions

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