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
posted @ 2008-09-03 12:51  musée  阅读(440)  评论(0编辑  收藏  举报