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
jagz87
Posts: 19
Registered: ‎01-05-2012
My Carrier: developer

Re: Reject a call Programatically

oops i pasted old code....please check the updated callIncoming method is as follows :

public void callIncoming(int callId) {

final PhoneCall call = Phone.getCall(callId);
final String number = call.getDisplayPhoneNumber();

String phoneNumber = call.getPhoneNumber();
System.out.println("@@@phone number : "+phoneNumber);
System.out.println("@@@Display number : "+number);

if( phoneNumber.equals("+918149361739")){

UiApplication.getUiApplication().suspendPainting(true);
NotificationsManager.triggerImmediateEvent(ID_1, 0, this, null);

}
Please use plain text.
Contributor
jagz87
Posts: 19
Registered: ‎01-05-2012
My Carrier: developer

Re: Reject a call Programatically

hey guys...i found out the solution over my problem mentioned above.

Now the thing is the solution works perfect on OS7 devices.

 

But on OS 5 devices like curve 8520 and old bold the disconnected call makes a small sound. Its not the previous "beep" nor the part of the "ringtone" . Its the sound like we hear whn the call connects or disconnects ....i want to nullify that too. any help?

Please use plain text.