This page was last modified 15:57, 23 June 2008.
How to Launch Browser in 3rd edition
From Forum Nokia Wiki
// ---------------------------------------------------- // CBrowserAppUi::LaunchBrowserL(const TDesC& aUrl) // Used for launching the default browser with provided url. // ---------------------------------------------------- // void CBrowserAppUi::LaunchBrowserL(const TDesC& aUrl) { const TInt KWmlBrowserUid = 0x10008D39; TUid id( TUid::Uid( KWmlBrowserUid ) ); TApaTaskList taskList( CEikonEnv::Static()->WsSession() ); TApaTask task = taskList.FindApp( id ); if ( task.Exists() ) { HBufC8* param = HBufC8::NewLC( aUrl.Length() + 2); param->Des().Append(_L("4 ")); param->Des().Append(aUrl); task.SendMessage( TUid::Uid( 0 ), *param ); // Uid is not used CleanupStack::PopAndDestroy(param); } else { HBufC16* param = HBufC16::NewLC( aUrl.Length() + 2); param->Des().Append(_L("4 ")); param->Des().Append(aUrl); RApaLsSession appArcSession; // connect to AppArc server User::LeaveIfError(appArcSession.Connect()); TThreadId id; appArcSession.StartDocument( *param, TUid::Uid( KWmlBrowserUid) , id ); appArcSession.Close(); CleanupStack::PopAndDestroy(param); } }
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| N73 JSR-226 (SVG) support | peterblazejewicz | Developer Resources Feedback (Documentation, Examples, Training) | 6 | 2006-08-17 00:44 |
| resolving link with browser control API | fagiano | General Symbian C++ | 3 | 2007-11-12 09:19 |
| Tryng to launch an app via code on 3rd edition | bytesm | Symbian Signing, Certification and Security | 5 | 2007-02-06 23:40 |
| How to debug on phone? | erst | General Symbian C++ | 4 | 2007-03-09 12:25 |
| WML supported by "all" mobiles? | barleby | Browsing and Mark-ups | 7 | 2008-05-21 00:49 |
