 Thread Author
# 1

07-07-2011, 10:37 PM
|
| | CrackBerry Master Device(s): 9850 7.1.0.402 + PlayBook 16Gb Carrier: Verizon Pin: PM me for it! | | Location: Eastern Shore of MD Join Date: Sep 2008 Posts: 1,074 Likes Received: 116
Thanked 215 Times in 124 Posts
| |
MIDlet not found exception with ApplicationManager.launch for Bolt browser
Hi Everyone,
I would be grateful for any help that could be offered for an issue I'm having using the ApplicationManager.launch function in order to invoke the Bolt browser from my BlackBerry app.
Here is the code snippet in question: Code: if(CodeModuleManager.getModuleHandle("boltbb252") == 0) {
Dialog.alert("Bolt is not currently installed");
} else {
try {
manager.launch("boltbb252?" + buildURL());
} catch (ApplicationManagerException e) {
Dialog.alert("Bolt launch failed!");
}
} The method I'm using above seems to work flawlessly with the Opera Mini browser using the module name "operette$2dhifi" as obtained from the applications list under the BB's options screen but does not seem to be working with the Bolt browser application. The getModuleHandle call confirms that boltbb252 is a valid module name, however, the launch function generates "Uncaught exception: MIDlet not found exception" on the device and simulator. I also tried substituting boltbb252 for BOLT (which I obtained from the MIDlet Name parameter of the Bolt applications JAD file) but this generates the same results.
My aim is to launch the Bolt browser with a generated URL, launch seemed to be the easiest way of doing this but perhaps I need to use a different method?
Any insight anyone could offer would be gratefully appreciated.
Thanks in advance,
Russ.
|