This page was last modified 06:24, 27 November 2007.
How to discover all installed applications
From Forum Nokia Wiki
RApaLsSession can be used to get all currently installed applications from the device. The following code sample shows how to get an array containing names of the installed applications:
CDesCArray* CMyClass::GetApplicationsL(void) { CDesCArrayFlat* MyArray = new(ELeave)CDesCArrayFlat(10); CleanupStack::PushL(MyArray); RApaLsSession ls; User::LeaveIfError(ls.Connect()); CleanupClosePushL(ls); User::LeaveIfError(ls.GetAllApps()); TInt Errnono(KErrNone); TApaAppInfo AppInfo; do { Errnono = ls.GetNextApp(AppInfo); if(KErrNone == Errnono && AppInfo.iCaption.Length()) { MyArray->AppendL(AppInfo.iCaption); } }while(KErrNone == Errnono); CleanupStack::PopAndDestroy(); // ls CleanupStack::Pop(MyArray); return MyArray; }
TApaAppInfo also has many other information items of the application that can be utilized when airing application information, for example Get application icon shows how to get the application icon using the application UID that van be retrieved using the code sample shown above.
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bluetooth Discovery example | fuchsia1155 | Bluetooth Technology | 3 | 2007-05-10 10:39 |
| Is it possible to create a something like a business card | jinda007 | Mobile Java Media (Graphics & Sounds) | 6 | 2007-04-25 14:30 |
| Can not find installed midlets - Nokia 6600 v 5.27.0 Firmware | kakoskin | General Discussion | 1 | 2004-10-14 23:03 |
| How to remove applications from the Series 60 emulator? | MobileVisuals | Symbian Tools & SDKs | 1 | 2008-03-21 16:38 |
| NFC newbie - basic questions (NFC kit ordering) | miroslav_karpis | Near Field Communication | 2 | 2008-07-01 16:53 |
