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
Developer
smiley
Posts: 1,475
Registered: ‎07-14-2008
My Device: Z10

how to determine if the current call is a missed call.

i've searched the old forum and couldn't find an answer.

 

If the caller disconnects before i answer how do i determine if its a missed call?

 

i've tried this

 

    private static final class _CallLogListener implements PhoneLogListener
    {
        public void callLogAdded(CallLog cl)
        {
         }

    }

 

but it doesnt not tell the call type.   am i using the wrong listener?

 

thanks 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,671
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: how to determine if the current call is a missed call.

The PhoneCallLog.getType() method can be used to see if the call was missed.

 

Or you can determine this by using a PhoneListener.  If you receive a callIncoming notification that is not followed by a callAnswered event your application could assume that the call was missed.

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
Please use plain text.
Developer
smiley
Posts: 1,475
Registered: ‎07-14-2008
My Device: Z10

Re: how to determine if the current call is a missed call.

thanks but the only one case that wouldnt work is if you manually ignore the call.

I'll try your first suggestion. 

Please use plain text.