Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier
Accepted Solution

How to add menu items in the blackberry sms and call log.

I want to know is it possible to add menu items in sms and call log of the phone.

 

         Imean to say that if i will open sms then on focusing on one of the sms log i want to show my menu item to be merged in the blackberry menu items.. same in call log history..............

 

 

Any help is appreciated please give me sample code too i will be really thankfull..........................

Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: How to add menu items in the blackberry sms and call log.

Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

Thanks maadani

Now i am able to add the menu item but can i know how to access complete detail of the call log and sms which has focus
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

Please post the sample code so i can understand easily...

Thanks in Advance
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to add menu items in the blackberry sms and call log.

you get the object as context in the run method.
http://www.blackberry.com/developers/docs/5.0.0api/net/rim/blackberry/api/menuitem/ApplicationMenuIt...

the menu item is also often executed by the host application, if you call UiApplication.getUiApplication().getActiveScreen() you get a reference to the active screen of this application, but as usually non-public fields are used this is not always helpful.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

can any body tell me that what i should use

ApplicationMenuItemRepository.getInstance().addMenuItem(ApplicationMenuItemRepository.MENUITEM_SMS_VIEW, app);

in place of MenuItem_SMS to see menu item on the first screen of the sms. that appears jut after pressing SMS

same for call also just after pressing call button

i also want to know that if above is possible then using object of run() method of ApplicationMenuItem can i get the detail of PhoneLog and SmsLog.

Help me if it is possible Thanks in Advance.... for any suggestion
Developer
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: How to add menu items in the blackberry sms and call log.

If you would use this id: MENUITEM_PHONELOG_VIEW, the menu item will appear when a call log is opened for viewing and you will get the PhoneLog instance as the context in the run.

 

What do you mean by SMSLog?

Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

By smsLog i mean that message that are received in our sms box


You said MenuItem_PhoneLog_View but it shows menu item only when we opened complete detail of the phonelog
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

i got it i solved it using MENUITEM_PHONE, .MENUITEM_MESSAGE_LIST, MENUITEM_SMS_EDIT
Contributor
Posts: 25
Registered: ‎04-16-2012
My Device: Blackberry Bold
My Carrier: no_carrier

Re: How to add menu items in the blackberry sms and call log.

Can you please tell me that how i can read details of Sms