Dear Symbian Experts,
I was trying to install java application through C++, I make it successful, now I want to hide that application icon from application launcher by setting hidden flag of AIF file using following code, but icon won't hide. Please help me to edit AIF file at run time and update that file as per change.
Or tell me there is any other way to hide Midlet application icon Or is there any way to move Midlet application icon (Shortcut) to other location.
_LIT(path,"e:\\system\\Apps\\[101cec49]\\[101cec49].aif");
_L(path,"e:\\system\\Apps\\SDCMPLAYER\\SdcMPlayer.aif");
_LIT(nam,"NightmareCreatures");
RFs rfs;


TUid appUid={0x101cec49};

rfs.Connect(KFileServerDefaultMessageSlots);

TApaAppCapability appcap;

appcap.iAppIsHidden=ETrue;
TPckgBuf<TApaAppCapability> appcapbuf(appcap);

CApaAppInfoFileWriter* aifFileWriter= CApaAppInfoFileWriter::NewLC(rfs,path,appUid);

aifFileWriter->AddCaptionL(ELangEnglish,nam);
aifFileWriter->StoreL();
aifFileWriter->SetCapability(appcapbuf);
aifFileWriter->StoreL();
rfs.Close();