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
Highlighted
BlackBerry Development Advisor
Posts: 15,693
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

callIncoming - Question

Post from Guest on the previous forum:


Hello,
how often is this method from the PhoneListener executed when a call is received:

public void callIncoming(int callId){
//code
}

? It looks like if it is executed more then once when a call is received.
If you put System.out.println("Executed----->"); into the method, it gets printed more then once for each call.
Does anyone know about this?


My Reply:

 

The callIncoming method should only be called once.  Please verify that you have not accidently registered 2 PhoneListeners that are both firing when an incoming call arrives.  If this is not the case, please provide the BlackBerry model and handheld software version you are testing with.  This can be found under Options, About on the BlackBerry.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker