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
prabhatshishodia
Posts: 33
Registered: ‎12-03-2011
My Device: 9800

how to set auto send message on call reject

Hello Sir

             How to set auto send message on call reject .please give me code if possible.

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

Re: how to set auto send message on call reject

Hi@prabhatshishodia

 

 

I don't have a working code but basically, you should:

 

1. Implement the PhoneListener interface.

 

2. Catch the event of rejected call (my guess is that you would probably will have to use the 'CALL_ERROR_INCOMING_CALL_BARRED' flag).

 

3. Use the Invoke API to send the SMS.

 

Hope that helps,

 

E.

 

Contributor
prabhatshishodia
Posts: 33
Registered: ‎12-03-2011
My Device: 9800

Re: how to set auto send message on call reject

THANK SIR

                    I SET ALL THINGS ON REJECT BUT AUTO SEND IS NOT DONE.MESSAGE SEND ON CLICK BUTTON.I HAVE A LIST OF MESSAGE .

BUT I WANT TO SEND ONE MESSAGE TO BE SENT AUTOMATICALLY .

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

Re: how to set auto send message on call reject

How do you call the Invoke API?

 

Can you post the code you are using?

 

E.