views:

384

answers:

1

Hi,

Is it possible to get a list of all applications installed in a Blackberry, similar to the applications list when you go into your settings.

I can get a list of all visible applications using the following but I was wondering if it's possible to get a list of apps that aren't necessarily running but are installed,

ApplicationDescriptor[] descriptors = 
    ApplicationManager.getApplicationManager().getVisibleApplications();
+4  A: 

You can use:

net.rim.device.api.system.CodeModuleManager.getModuleHandles()

To get an array of handles into all modules, and:

net.rim.device.api.system.CodeModuleManager
    .getApplicationDescriptors(int moduleHandle)

To get ApplicationDescriptors associated with the module. You will have to sort out which modules are libraries and which are applications.

Richard