Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Help need to kill a task from inside of another application.

0 replies · 4,868 views · Started 30 May 2005

Hi,

I have to run an applicationB when i try to remove a installed applicationA.

Iam able to do that.

My application A will wait to get removed till i exit from applicationB.

now i want to kill the remove task(which is removing applicationA) when iam running applicationB.

This is the code i have written to kill the process and put in apllicationB:

RWsSession();
RWsSession iWsSession;
iWsSession.Connect();
TUid uid_applicationA = {uid};
TApaTask(CCoeEnv::Static()->WsSession());
TApaTaskList tasklist(iWsSession);
TApaTask task=tasklist.FindApp(uid_applicationA);
if(task.Exists())
{
task.KillTask();
CleanupStack::PopAndDestroy();
}
else
{
}

Iam not getting any error , but Iam not able to kill the remove task.

Kindly help me,

Thanks in advance.