08-14-2010 11:41 AM
i have use appMenuItemRe.addMenuItem(ApplicationMenuItemRepos
with a custom menu say Mymenu ,now i want click on the Mymenu and if cursor focuses on the To or CC or BCC the what ever i want to add in the body will not add in the body ,but if the cusor is on the compose body section then only it will add text in the body what ever i want to add.
i have use is code...
Field focus = UiApplication.getUiApplication().getActiveScreen()
if(focus != null)
{
--------------------------
-----------------------------
}
i have use getLeafFieldWithFocus()....but it works where ever the cursor is.....
but i want that when only the cursor is on the compose body section then only it will work...
will not work when the curson is on To or CC or BCC
Please provide with the piece of code..that will be help fully for me...
Thanks in advance...
08-17-2010 05:04 PM
Can you explain what you are trying to do? I'm not clear on that from your message. Do you want to update the body of the email message?
08-18-2010 01:13 AM
yes i want to reply the existing email wiht a custom ApplicationMenuitem say for eg mymenu
can u provide a piece of code...
Thanks in advance..
08-18-2010 03:41 PM
Here are a couple examples that should help you.
Add a custom menu item to an existing BlackBerry application
Create and send messages
http://supportforums.blackberry.com/t5/Java-Develo
08-19-2010 12:31 AM
Actuall i got this previously,but the thing i want to know the how to reply to an existing email through ApplicationMenuItem say mymenu ,means when i click mymenu and open the existing email it will automatically take the required things from the email say for eg To,CC body and put the same thing in reply position , say how we reply while writing the email through gmail in web....This same reply i want to program through BB email...
Can any can provide with a piece of code...
Thanks in advance...
08-19-2010 09:55 AM
The ApplicationMenuItem should pass in a copy of the current message in the run command. You can then call Message.reply to generate a reply email message. Then populate the body and send it off, similar to the send email sample referenced above.
08-19-2010 10:24 AM
can u please provide with a piece of code.It's needs urgent...
Thanks in advance