In section 3.1.5.1 of "Utilizing_External_App_Views_v1_0.pdf" there is an example of how to start the Series 60 WAP browser for a particular URL. This same topic is also discussed a few times on various discussion groups. One of the best discussions can be found on the nokia discussion forums under the title "lauching wap browser with URL". Try the following URL to the post: http://discussion.forum.nokia.com/fo...2442#post62442 The Nokia discussion thread even includes an example application that demonstrates such usage.
Now what I want to do is to open a local wml file which includes links to WAP sites on the web. I expect doing this is almost identical to the above. The line in the examples where I think the change will be is as follows:
param->Des().Copy( _L("4 wap.yahoo.com/") );
Now my guess is that the number 4 somehow changes when opening a file, but I don't really know. Can anyone provide guidance here?
A second question to which I don't yet know the answer (since I'm still developing on the emulator) is can I go to a URL with a file component (i.e. http://wap.yahoo.com/somedirectory/somethingtoread.wml)? My current assumption is that doing this won't be a problem. Does anyone reading this know for sure?
---------------------------------
Now just to keep you from having to chase down the example code for opening a URL I have copied it below:
>Just pass in a local file URL like "file:///local.wmlc".
Why should that work? The example specifically removes the http:// from what it uses to open the browser.
It works either way. If the scheme part is omitted, it will default to http.
You can test it yourself: download the sample code from http://discussion.forum.nokia.com/fo...threadid=21756 and change the URL in AppUi::HandleCommandL() to "file:///hello.wmlc". The wmlc file is supplied with the SDK.