Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Regular Contributor
Posts: 61
Registered: ‎03-28-2010
My Device: Bold 9700
My Carrier: Maxis Malaysia

Detect map on BB Torch or OS 6



I've bee using the following code to detect whether BB Maps available or not in the device :


int m_bbHandle = CodeModuleManager.getModuleHandle("net_rim_bb_lbs");


It works from 4.5 up till 5.0. But for 6.0, it return 0, or not found.


What is the new BBHandle for BB Maps on OS 6.0?

Posts: 122
Registered: ‎08-11-2008
My Device: 9700
My Carrier: XL

Re: Detect map on BB Torch or OS 6


just updating an old thread (question).





int mh1 = CodeModuleManager.getModuleHandle("net_rim_bb_lbs"); // OS 4.5 - 5.0
int mh2 = CodeModuleManager.getModuleHandle("net_rim_bb_maps"); // OS 6.0
if (mh1 == 0 && mh2 == 0) {
Dialog.alert("BlackBerry Maps isn't installed");



"Give kudos (star) if you feel response is helpful"