Programmatically share the text in BBM blackberry

风格不统一 提交于 2019-11-28 10:27:39

问题


I need to share my text in BBM, i have tried this code

protected void sendBBM() {
    BlackBerryMessenger bbm = BlackBerryMessenger.getInstance();

    int moduleHandle = CodeModuleManager.getModuleHandle("net_rim_bb_qm_peer");
    ApplicationDescriptor[] apDes = CodeModuleManager.getApplicationDescriptors(moduleHandle);
    try {
        ApplicationManager.getApplicationManager().launchApplication("net_rim_bb_qm_peer");
    } catch (ApplicationManagerException e) {
        e.printStackTrace();
    } 
}

it's going to BBM menu in simulator. but, when i run in my 9300 Mobile it's going to catch statement(Error starting null: null), and BBM is not opening.

Can anyone provide some solutions to solve this issue?

来源:https://stackoverflow.com/questions/16538301/programmatically-share-the-text-in-bbm-blackberry

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