BlackBerry Forums Support Community

BlackBerry Forums Support Community (
-   Developer Forum (
-   -   Incoming call Responding (

Arulselvam 05-17-2012 11:32 PM

Incoming call Responding

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");

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 05:44 AM.

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