Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User KeijoKoodaaja's Avatar
    Join Date
    Nov 2009
    Posts
    4
    I'm developing an Flash Lite 3.0 application to Nokia 5800 and Nokia N97 (both are Symbian S60 5th edition).
    The application is almost finished, but I have one major problem. The application needs to open multiple url's in the web browser. Everything works if the user doesn't have the browser already open, but when the browser is running in the background, the urls are not opening.

    I have tried to search a solution to this problem, but I haven't been able find it. I have seen people with same problem, but no-one had the answer. Here is a list what I have tried to get it work.

    1:
    getURL("http://www.google.com/", "_blank");

    Works like a charm if browser is not already open. If it is nothing happens. I have also tried with parameters like "_self" and "_top", but they don't have an effect.

    2:
    fscommand("launch", "BrowserNG.exe");

    If the browser is not running this opens it with the default page.
    If the browser is running this only brings it to foreground with current webpage leaving the app running in background.

    3:
    fscommand("launch", "BrowserNG.exe,http://www.google.com/");

    This doesn't really do anything, it only makes a white screen appear for a moment and then it goes back to the app.
    Apparently you can't pass any arguments to the browser this way.

    4:
    I even tried to use a KuneriLite's System plug-in with following results...

    loadVariables("http://127.0.0.1:1001/Basic/system?klCommand=open&klApp=Browser&klArgs=http://www.google.com/", "");

    This works like getURL. If browser is not running it opens with the desired page.
    When the browser is in the background this doesn't do anything.

    5:
    Combination of these. For example I tried to use getURL and fscommand with the same time with no luck.

    It would seem that the only solution is to ask user to close browser before opening a new url, but that's like the worst solution ever.

    Has anyone been able to get this work with Flash Lite or is it impossible even with C++?
    Last edited by KeijoKoodaaja; 2009-11-29 at 14:21.

  2. #2
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Update FL 3.0 to 3.1. As i did a quick test (FL 3.1 + Nokia 5800) & getURL is working fine on Fl 3.1 i.e opening the provided url in the browser successfully even if the browser is already running.
    is it impossible even with C++?
    You can do this quite easily using Symbian C++ ( if u have basic knowledge abt symbian c++). The algorithm can be like this i.e check if browser application is running, if true then close it , launch browser application with provided url in arguments).

    Best Regards,
    SajiSoft

  3. #3
    Registered User KeijoKoodaaja's Avatar
    Join Date
    Nov 2009
    Posts
    4
    Thank you for your answer.

    Unfortunately I cannot ask users to upgrade their FL version, so updating player is not an option.

    I tried one more thing to solve this, launching the browser with AppManager service API, but I'm not able launch it with specific url.

    Now it seems that the only option is to use c++, but it's gonna take some extra time.

  4. #4
    Registered User KeijoKoodaaja's Avatar
    Join Date
    Nov 2009
    Posts
    4
    Quote Originally Posted by sajisoft View Post
    Update FL 3.0 to 3.1. As i did a quick test (FL 3.1 + Nokia 5800) & getURL is working fine on Fl 3.1 i.e opening the provided url in the browser successfully even if the browser is already running.
    I updated the Flash Player to 3.1 with Nokia 5800 and made a test application using 3.1. However I wasn't able to replicate your result. It still works the same as before. I used KuneriLite to make the sis package. Is this the reason why it doesn't work?

  5. #5
    Nokia Developer Champion sajisoft's Avatar
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,062
    Quote Originally Posted by KeijoKoodaaja View Post
    I updated the Flash Player to 3.1 with Nokia 5800 and made a test application using 3.1. However I wasn't able to replicate your result. It still works the same as before. I used KuneriLite to make the sis package. Is this the reason why it doesn't work?
    Well! just try the swf in standalone flash lite player first by launching swf from messaging or file browser.It should have to work.

    Best Regards,
    SajiSoft

  6. #6
    Product Specialist markadoherty's Avatar
    Join Date
    Jun 2003
    Location
    UK
    Posts
    191
    Can you test the FSCommand2 api instead? I'd also be interested to see what the return value is from the statement.
    Mark Doherty
    Developer Evangelist
    Adobe Systems, Mobile and Devices EMEA

  7. #7
    Registered User KeijoKoodaaja's Avatar
    Join Date
    Nov 2009
    Posts
    4
    Quote Originally Posted by markadoherty View Post
    Can you test the FSCommand2 api instead? I'd also be interested to see what the return value is from the statement.
    What do you mean?

    FSCommand2 doesn't seem to have any function to launch the browser...

Similar Threads

  1. Can you review my python files...?
    By xitopodo in forum Python
    Replies: 6
    Last Post: 2009-06-29, 09:49
  2. Replies: 2
    Last Post: 2009-06-25, 11:13
  3. Question about web browser
    By zhangwei_Nirvana in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-28, 07:28
  4. Web Browser Proxy Plug-in
    By cyberziz in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-12-19, 14:23
  5. Opening the Nokia 9210 Communicator web browser from SMS
    By cl_fragen in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2001-12-10, 17:58

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