Help!!! Utilizing External Application Views....

Login to reply to this topic.
Tue, 2007-09-11 08:47
Joined: 2006-05-22
Forum posts: 50

Hi all,

I m implementing an application for s60 2nd edition devices.Now i want to add some interactive features on my applications.

For this, the user can invoke the browser from my application itself.
I implemented code and its working fine.

This is the code,

RApaLsSession apaLsSession;
const TUid KOSSBrowserUidValue = {0x1020724D};
// 0x1020724D on 3rd Edition!0x10008D39 on 2nd edition
HBufC* param = HBufC::NewLC(64);
param->Des().Copy(_L("4 http://www.yahoo.com/"));

TUid id(KOSSBrowserUidValue);
TApaTaskList taskList(CEikonEnv::Static()->WsSession());
TApaTask task = taskList.FindApp(id);
if(task.Exists())
{
task.BringToForeground();
HBufC8* param8 = HBufC8::NewLC(param->Length());
param8->Des().Append(*param);
task.SendMessage(TUid::Uid(1), *param8); // UID not used
CleanupStack::PopAndDestroy(param8);
}else{

if(!apaLsSession.Handle())
{
User::LeaveIfError(apaLsSession.Connect());
}

TThreadId thread;
User::LeaveIfError(apaLsSession.StartDocument(*param, KOSSBrowserUidValue, thread));
apaLsSession.Close();
}
CleanupStack::PopAndDestroy(param);

My issuse is whenever i click that option in my application to open the browser , its opening n going to the proper link.But in mean time , i pressed the MenuKey+Call key to see the current running program, its showing my app icon and the Browser app Icon also...

BUt i dont want like that. I want like if we see the current running programs then it has to show only my app icon not browser app icon.

Can u anybody help me out?

Thanks in advance!!!

By,
karthikeyan.B


Tue, 2008-08-12 08:03
Joined: 2008-03-18
Forum posts: 23
Re: Help!!! Utilizing External Application Views....

actually you mean : use the brower as a Controller in your app!

/****************************************************************
- how to use the web browser in app
-
-1.Document Handler (DocumentHandler) :open local html/wml/.. web page
-2.App framework APPARC (TApaTaskList/TApaTask) :open website or local wml/html/..
-3.Browser Control API : use the browser as a controler (from s60 2nd fp3)
*****************************************************************/

the third one is what you want to use ,yet this API can be got untile S60 2rd FP3..

  • Login to reply to this topic.