BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   Incoming call Responding (http://www.blackberryforums.com/developer-forum/259549-incoming-call-responding.html)

Arulselvam 05-18-2012 12:32 AM

Incoming call Responding
 
Hi,

i have to develop BlackBerry Auto Responding call ,i have class which extends AbstractPhoneListener and also implements PhoneListener it does not responding incoming call please help me to resolve this problem.


The code i have used is below:

Phone.addPhoneListener(new AbstractPhoneListener(){
public void callIncoming(int callId) {
String number = Phone.getCall(callId).getPhoneNumber();
Dialog.inform("call incomming "+number);
sendSMS(number, "I am not available");
super.callIncoming(callId);
}
});
Regards,
Arulselvam.J

Dougsg38p 05-18-2012 08:59 AM

Re: Incoming call Responding
 
How do you know it is not responding?

If you are basing this on the fact that you don't see the dialog, this "Dialog.inform()" code will never happen because the execution context is the phone application, not your application.


All times are GMT -5. The time now is 09:05 PM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.