Question

How can we launch a blackberry messenger programmatically. Any help would be greatly appreciated. As far as I know the following would get the BlackberryMessenger instance but what can be done to launch the BBM:

BlackBerryMessenger bbm= BlackBerryMessenger.getInstance();
Was it helpful?

Solution

I still urge you to consider my comments above, but you should be able to cause BBM to come to the foreground with:

int modHandle = CodeModuleManager.getModuleHandle( <bbm module name> );
ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors( modHandle ); 
ApplicationManager.getApplicationManager().runApplication(apDes [ 0 ] );

You will have to find out what the appropriate module name is and put that string in the call to getModuleHandle(). BBM has a bunch of modules and I don't know off hand which one is the main one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top