Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Open WAP/Web page with browser

From Wiki
Jump to: navigation, search
Article Metadata
Created: symbianyucca (09 Apr 2007)
Last edited: hamishwillee (25 Jul 2012)

Following code shows how you can open the phones WAP/Web browser in your own application, by just supplying Web address to browser.

In Symbian 3rd edition devices sending a new URL to an existing browser instance requires the SwEvent capability.

#ifdef __SERIES60_3X__
const TInt KBrowserUid = 0x1020724D;
const TInt KBrowserUid = 0x10008D39;
void BrowseWAPWEB+PageL(const TDesC& aAddr)
TUid id( TUid::Uid( KBrowserUid ) );
TApaTaskList taskList( CEikonEnv::Static()->WsSession() );
TApaTask task = taskList.FindApp( id );
if ( task.Exists() )
HBufC8* param8 = HBufC8::NewLC(aAddr.Length() );
// Uid is not used
task.SendMessage( TUid::Uid( 0 ), *param8 );
RApaLsSession appArcSession;
// connect to AppArc server
TThreadId id;
appArcSession.StartDocument(aAddr, TUid::Uid( KBrowserUid ),id);

This code opens the Web browser in 3rd edition phones, and the WAP browser with older platform devices. To open the page with WAP browser also in 3rd edition phones, just change the code to use 0x10008D39 also with 3rd edition devices.

This page was last modified on 25 July 2012, at 06:23.
44 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.