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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Administrator
MSohm
Posts: 12,957
Registered: ‎07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.