S60中获取所有App的方法
TApaAppInfo appInfo;
RApaLsSession apaSession;
User::LeaveIfError(apaSession.Connect());
CleanupClosePushL(apaSession);
User::LeaveIfError(apaSession.GetAllApps());
TUid appUid = TUid::Null();
while (apaSession.GetNextApp(appInfo) == KErrNone)
{
LogInfo(appInfo.iFullName);
LogInfo(appInfo.iCaption);
}
CleanupStack::PopAndDestroy(); // apaSession
RApaLsSession apaSession;
User::LeaveIfError(apaSession.Connect());
CleanupClosePushL(apaSession);
User::LeaveIfError(apaSession.GetAllApps());
TUid appUid = TUid::Null();
while (apaSession.GetNextApp(appInfo) == KErrNone)
{
LogInfo(appInfo.iFullName);
LogInfo(appInfo.iCaption);
}
CleanupStack::PopAndDestroy(); // apaSession