How to Hide Native Music player Application from Task List ?
waiting for symbian experts reply ....
How to Hide Native Music player Application from Task List ?
waiting for symbian experts reply ....
Its my requirement. need to Hide Native Music player Application from User Menu
Yep, I suppose it is the thing that it can play to the uplink, and symbian^3 sources appears to be including nice API for controlling it. thus I'm assuming that teh requirement is to hide the fact that the music player is used for the task there.. Anyway, sofar I have seen the hiding to work from applciation itself, anyway, maybe you could search how that was done, and put your searching skills in use again and see whether you could tap those from outseide..
KERN EXEC 3 panic occuring
TApaTaskList iTaskList(CCoeEnv::Static()->WsSession());
TBool iExists;
TApaTask iApaTask = iTaskList.FindApp(TUid::Uid(0x102072C3));
iExists = iApaTask.Exists();
if(iExists)
{
CApaWindowGroupName* wgName = CApaWindowGroupName::NewLC(
CCoeEnv::Static()->WsSession(),iApaTask.WgId());
wgName->SetAppUid(TUid::Uid(0x102072C3));
wgName->SetHidden( ETrue );
wgName->SetSystem(ETrue);
RWindowGroup *iWg;
TInt handle =CEikonEnv::Static()->WsSession().GetWindowGroupHandle(iApaTask.WgId());
iWg->Construct(handle);
iWg->SetOwningWindowGroup(iApaTask.WgId());
wgName->SetWindowGroupName(*iWg);
CleanupStack::PopAndDestroy( wgName );
TBuf<40> display;
dis.Num(iApaTask.WgId());
CEikonEnv::InfoWinL(_L("id="),display);
}
You could practice on-device-debugging a little, then you would find an uninitialized pointer. Which actually does not need to be a pointer at all, so removing the * and replacing some '->'-s with '.'-s will probably solve the problem.
Also I would not use RWindowGroup as a pointer.
I was talking about that one actually.