Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User kraja's Avatar
    Join Date
    Jun 2006
    Location
    London
    Posts
    22
    Hello,

    I'm able to launch the default browser from an app on Series 60 v1/v2 based phones. But on Series60 v3, it seems to be behaving strange, well I don't know if this is something to do with Series60 v3, but this is what I observe on Nokia N80. If the browser is not already started, then launching the browser using RApaLsSession works fine, but if the browser is already started, then passing the URL is not working.

    I use this code to pass the URL to the browser.

    TApaTask taskBrowser = taskList.FindApp(idBrowserApp);
    if(taskBrowser.Exists())
    {
    (void)taskBrowser.BringToForeground();
    (void)taskBrowser.SendMessage(TUid::Null(), *pUrl8bit); // Uid is not used.
    }
    else
    {
    // This part works fine
    }

    Without the "BringToForeground()", the browser was not even coming to foreground. Anyway even with this call, the browser just comes to foreground and it does not connect (doesnt seem to launching URL). The same code works fine on older Series60 phones.

    Has anyone observed this before ? any quick thoughts ?

    thanks.

  2. #2
    Registered User microsoft2's Avatar
    Join Date
    Jan 2006
    Posts
    279
    May be I am wrong, but shouldn't Uid should be KUidApaMessageSwitchOpenFileValue.
    Look what the sdk says:
    "The UID identifying the message. By default, the UI framework recognizes only two messages, KUidApaMessageSwitchOpenFileValue and KUidApaMessageSwitchCreateFileValue. "

  3. #3
    Registered User kraja's Avatar
    Join Date
    Jun 2006
    Location
    London
    Posts
    22
    Just figured out that TApaTask::SendMessage needs SwEvent capability. It works like a charm now.

    and yeah, TUid::Null() will do.

    thanks.

Similar Threads

  1. Nokia 7160 WAP browser compared to Nokia 7110 WAP browser
    By nkn_aikon in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2001-11-08, 14:42
  2. Nokia 7190 WAP browser compared to Nokia 7110 WAP browser
    By nkn_mobile1 in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2001-11-08, 14:42
  3. Replies: 0
    Last Post: 1970-01-01, 02:00
  4. Replies: 0
    Last Post: 1970-01-01, 02:00

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