Header Sep
Symbian Tips, Tricks & Code
My Rating Score
Login to rate page
March 2003
Open a specific page when launching the Sony Ericsson P80x and P90x web browser

[Back]

If your application launches the Sony Ericsson P80x and P90x's web browser, you probably want it to go to a particular URL. You might want to help the user to locate critical data or updated product information. This code snippet shows you how to launch the Sony Ericsson P80x and P90x's web browser and open a specified page.

TUid &aWebAppUid = { 0x100066de };
RApaLsSession session;
session.Connect();
TApaAppInfo aInfo;
session.GetAppInfo(aInfo,aWebAppUid);
CApaCommandLine *commandline = CApaCommandLine::NewL();
commandline->SetLibraryNameL(aInfo.iFullName);
TPtrC url;
url.Set(_L("http://www.YourNameHere.org"));
commandline->SetDocumentNameL(url);
commandline->SetCommandL(EApaCommandCreate);
session.StartApp(*commandline);
delete commandline;
session.Close();

The url.Set() call is the critical line. Put the URL string in this call, and your page will appear when the browser launches.

My Rating Score
Login to rate page