Creating menu items for linked contacts
You can create menu items that are available in the Contacts application on the BlackBerry® device when a user views a contact that is linked with a contact in your application by invoking LinkedContactUtilities.registerMenuItems(). You must assign menu items to an application group by using the LinkedContactConstants interface.
If a contact in the Contacts application is linked with contacts in multiple third-party applications, the menu items in the Contacts application are grouped with other applications of the same group.
- Social networking menu items are grouped under the Social Networking menu item.
- Instant messaging menu items are grouped under the Instant Messaging menu item.
- Menu items from other types of applications are grouped under the Contact Using menu item.
The menu items from the third-party applications with linked contacts are integrated with the menu for the Contacts application.
Situation |
Result |
|---|---|
|
A group contains one application with linked contacts. The application contains one menu item. |
The menu item for the application appears in the menu in the Contacts application. |
A group contains one application with linked contacts. The application contains multiple menu items. |
The application's name appears in the menu. Selecting the name displays a dialog box that contains a button for each menu item. |
A group contains multiple applications with linked contacts. |
The group menu item (such as Social Networking) appears in the menu. Selecting the group menu item displays a dialog box with a button for each application with linked contacts in the group. |