开发者

Is it possible to call my appication from the native application in Blackberry.?

开发者 https://www.devze.com 2023-03-13 19:31 出处:网络
I want to know that is it possible to call my application from the native app. like Reminder,phone call etc. in Blackberry.

I want to know that is it possible to call my application from the native app. like Reminder,phone call etc. in Blackberry. It开发者_如何学Go yes then please give me sort description about how it is possible.


yes ,it is possible. you can add your menu item in native application,and on run method pass the argument to perform your task.

to add menu item use it.

 AdressBookMenuItem menuItem = new AdressBookMenuItem(0);
    ApplicationMenuItemRepository repository =ApplicationMenuItemRepository.getInstance();
    long id=ApplicationMenuItemRepository.MENUITEM_CALENDAR;
    repository.addMenuItem(id2,menuItem);

and for open your app

   class AdressBookMenuItem extends ApplicationMenuItem {

Message mess;

public AdressBookMenuItem(int order) {
    super(order);
}

public AdressBookMenuItem(Object context, int order) {
    super(context, order);
}
public Object run(Object mess) 
{
    ApplicationManager.getApplicationManager().launch(appCodName+"?admin");
 }

public String toString() {
    return "MENU Item name";
}
   }
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号