Get a list of all installed applications on Blackberry

点点圈 提交于 2019-12-01 10:39:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!