Is it possible to call my appication from the native application 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";
}
}
精彩评论