问题
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();
回答1:
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.
来源:https://stackoverflow.com/questions/1372791/get-a-list-of-all-installed-applications-on-blackberry