BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Incoming call Responding (http://www.blackberryforums.com/showthread.php?t=259549)

Arulselvam 05-17-2012 11:32 PM

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 07: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 01:01 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.