LaunchBrowserEmbedded()
{
CApaProcess *pApaProcess = Document()->Process();
TUid id;
id.iUid = 0x10008d39;
iDoc = pApaProcess->AddNewDocumentL(KNullDesC , id);
iDoc->EditL(this, ETrue);
TApaTaskList taskList( iEikonEnv->WsSession() );
id.iUid = 0x10208b93;//this
TApaTask task = taskList.FindApp( id );
if ( task.Exists() )
{
task.SendMessage(TUid::Uid(0), _L8("4 http://news.google.com/xhtml"));
}
}
Note:you have to provide NotifyExit() in your AppUi to delete iDoc.
No comments:
Post a Comment