Help Center
Local Navigation
- Creating user interfaces
- Storing data
- Creating connections
- Managing applications
- Using custom messages and folders in the message list
- Applications for push content
- Localizing BlackBerry device applications
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Development Guide - BlackBerry Java Development Environment - 4.7.0
Retrieve module information
- Import the net.rim.device.api.system.CodeModuleManager class.
- To retrieve a handle for a module, invoke getModuleHandle(), and provide the name of the code module as a parameter.
int handle = CodeModuleManager.getModuleHandle("test_module") - To retrieve specific information about a module,
invoke the methods of the CodeModuleManager class, and provide the module handle as a parameter to these methods.
String name = CodeModuleManager.getModuleName( handle ); String vendor = CodeModuleManager.getModuleVendor( handle ); String description = CodeModuleManager.getModuleDescription( handle ); int version = CodeModuleManager.getModuleVersion( handle ); int size = CodeModuleManager.getModuleCodeSize( handle ); int timestamp = CodeModuleManager.getModuleTimestamp( handle );
- To retrieve an array of handles for existing modules on a BlackBerry® device,
invoke getModuleHandles().
int handles[] = CodeModuleManager.getModuleHandles(); String name = CodeModuleManager.getModuleName( handles[0]);
Parent topic: Code modules