BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Reply
 
LinkBack Thread Tools
  (#1 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default Problem with Invoking Messages Application - 07-05-2009, 11:38 PM

Hi,

I am testing an application that adds an application menu item in the messages list and when clicked, simply displays the old contents and recipients on the "Compose Email" Screen.

This is what i did.

Code:
public Object run(Object in_objContext) 
{
   if(in_objContext instanceof Message)
   {
	Message msgOrig = (Message)in_objContext;
	try
	{
		Message msgNew = msgOrig.reply(true,true);
				
		Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES,
			new MessageArguments(msgNew));
		
	}catch(Exception e){}
   }
   return null;
}
The problem is, there is no "Send" command in either the Context or Full Menu.

Can somebody help me?
   
Reply With Quote
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Dougsg38p Online
CrackBerry Addict
 
Posts: 813
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-06-2009, 08:40 AM

Message.reply() is broken. This is a known issue that extends from 4.2 all the way up to 4.7 (AFAIK).

You'll need to invent your own "reply" function.
   
Reply With Quote
  (#3 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 07-06-2009, 08:23 PM

Is it? Hmmm.... thanks for that information
   
Reply With Quote
  (#4 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 07-07-2009, 03:37 AM

i created my own reply method, but i cannot seem to get the content of the previous message. i want that the Original Message be included in the body. (Similar UI to the normal "Original Message" part)

i tried using the setContent() by getting the content/body of the previous message but still it is empty.

any suggestions?
   
Reply With Quote
  (#5 (permalink)) Old
Dougsg38p Online
CrackBerry Addict
 
Posts: 813
Join Date: Mar 2008
Location: Austin, TX
Model: 8320
PIN: N/A
Carrier: T-Mobile
Default 07-07-2009, 09:33 AM

Try using the forward() method to create a reply, the re-swizzle the subject line and out in your recipients.
   
Reply With Quote
  (#6 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 07-14-2009, 03:38 AM

thanks, got it!
   
Reply With Quote
  (#7 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 07-14-2009, 03:40 AM

this thread is already solved...how do i close it?
   
Reply With Quote
  (#8 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 09-29-2009, 01:57 AM

Quote:
Originally Posted by Dougsg38p View Post
Try using the forward() method to create a reply, the re-swizzle the subject line and out in your recipients.
Hi there, i just realized something else. If i use the forward() method and if there is a file attached on the previous email, it also gets sent along with the reply. Is there a way i can remove the previous attachment?

I tried using getContent() and getBodyText(), it does not work. I always get null as the return type.
   
Reply With Quote
  (#9 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 10-07-2009, 04:30 AM

The "Save Drafts" command doesn't seem to work, as well.

Can somebody help me? Did anybody else encounter these problems?
   
Reply With Quote
  (#10 (permalink)) Old
grepPZ Offline
New Member
 
Posts: 12
Join Date: Mar 2008
Model: 9630
PIN: N/A
Carrier: VZ
Default 10-13-2009, 01:23 PM

I will give it a try in the evening today and update what I find. In the meantime you may want to ask this question at RIM support forums as well.
   
Reply With Quote
  (#11 (permalink)) Old
jacytan Offline
Thumbs Must Hurt
 
Posts: 51
Join Date: Oct 2008
Model: 8800
PIN: N/A
Carrier: Globe
Default 10-19-2009, 10:32 PM

still doesnt work for me. :(

how were your results?

i already posted the same issue in RIM but they're not responding.
   
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.