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
New Developer
vijaysaini
Posts: 72
Registered: ‎08-28-2008
My Device: Not Specified

SendListener issue??

Hi All,

I am using SendListener to listen the email message "send" event. And i am doing some process in sendMessage(Message message), based on our business logic return true or false.

By returning false, message sending process stops and message is marked as transmission refused[red cross icon].

But when user "Resend" this message then this sendListener is not invoked. i have few questions on this

1: is there any way to intercept the email "Resend" event?

2: why SendListener is not invoked when user "Resend" the email message?


please help me on this issue...

Urgent !!!

Thanks in advance
Regards,
Vijay Saini.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
Please use plain text.
Administrator
MSohm
Posts: 14,308
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: SendListener issue??

The resend issue has been resolved in BlackBerry handheld software version 4.5.0 and higher.  The SendListener is not fired when a user performs a resend when using previous versions of BlackBerry handheld software.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
vijaysaini
Posts: 72
Registered: ‎08-28-2008
My Device: Not Specified

Re: SendListener issue??

Thanks for your quick response.

 

I have few more questions on SendListener

 

I am trying to "resend" message programmatically that was stopped previously by SendListener after returning false. But when i resend the message  programmatically. then the message is sent successfully and delivered to user. But Message status message remains same i.e. Message : "Transmission refused by application : MyApplication" and in message list, this message is still marked with "red cross" sign. But when i send this message manually from menu item click(i.e. Resend), then message status is updated.

 

Currently, i am working on blackberry OS 4.2.1. Please find pseudo logic of resending the mail.

 

Search for message ID in SENT Folders.

if message found in sent Folder then 

    Send message with Transport.send(message);

else

do nothing 

 

So my questions are

1: why message status is not getting updated after message is resent programmatically by my code?

2: is there any way to change the message status?

 

Can you please help me on this. Is there any workaround for this issue .

 

Urgent !!

Thanks in Advance

Regards,
Vijay Saini.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
Please use plain text.
Administrator
MSohm
Posts: 14,308
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: SendListener issue??

Please make sure you are calling the Message.updateUi() after you have sent the message.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
vijaysaini
Posts: 72
Registered: ‎08-28-2008
My Device: Not Specified

Re: SendListener issue??

i had tried this. but Message.updateUi() is not working in my case.
Regards,
Vijay Saini.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish
Please use plain text.
Administrator
MSohm
Posts: 14,308
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: SendListener issue??

[ Edited ]
What BlackBerry model and handheld software version are you testing on?  You can see this under Options, About on the BlackBerry.  Do you see this when using version 4.5.0 or 4.6.0?
Message Edited by MSohm on 08-29-2008 02:07 PM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.