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
Developer
Posts: 242
Registered: ‎02-19-2013
My Device: 9500
My Carrier: _
Accepted Solution

Delelete the call after disconnect programmatically

I want to delete the call log after disconnecting it through programmatically.

 

PhoneLogs.getInstance().deleteCall(
                                            (PhoneLogs.getInstance().numberOfCalls(
                                                    PhoneLogs.FOLDER_NORMAL_CALLS) - 1),
                                            PhoneLogs.FOLDER_NORMAL_CALLS);

 

Its not working. can anyone suggest other way to delete the call log after disconnect it.

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Delelete the call after disconnect programmatically

use a thread and wait for 1-2 seconds, it takes a moment for the call log to be created after the call ends.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter