Symbian
Symbian OS Library

FAQ-1037 How can I find out what apps are available ?

[Index][spacer] [Previous] [Next]



 

Classification: C++ Category: Development
Created: 04/26/2004 Modified: 05/05/2004
Number: FAQ-1037
Platform: Symbian OS v6.0, Symbian OS v6.1, Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0a

Question:
In code, how can I get a full list of available apps on a device ?

Answer:
Use this code to find out information about available applications:

RApaLsSession ls;
if(ls.Connect() == KErrNone)
{
if(ls.GetAllApps() != KErrNone)
return;
TApaAppInfo info;
while(ls.GetNextApp(info) == KErrNone)
{
TApaAppInfo info1;
ls.GetAppInfo(info1,info.iUid); // Gets the Uid of the application
TFileName fileName = info1.iFullName; // Gets full path for application
}
}