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
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany
Accepted Solution

Deleting call logs: Waiting is the solution

There are several posts dealing with the deletion of call logs. A problem on older devices/OS versions is that the deleted call log stays on the device until a reboot. This is consistent with the behavior of the simulator.

I found a working solution after a colleague ran into the problem again today.
It seems that the issue is based on a synchronization problem in the OS, by the time callLogAdded (of the PhoneLogListener) is called the phonelog is not yet written in the storage. If you delete the log now another process is still working on it and it remains on the phone.

I solved this issue by running the removal in a new thread and issueing a sleep(2000) before deleting the call log. The 2000 is chosen randomly, i don't want to use too much time on it and the deletion is not time critical.

Just wanted to post an update to this issue, MSohm only wrote that it has been reported but i did not find any information about it being fixed.
----------------------------------------------------------
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
Please use plain text.
Developer
simon_hain
Posts: 15,558
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Deleting call logs: Waiting is the solution

just a post to mark the thread as solved
----------------------------------------------------------
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
Please use plain text.
Developer
ushernut
Posts: 55
Registered: ‎09-09-2008

Re: Deleting call logs: Waiting is the solution

[ Edited ]

Does this work for OS 5.0? I guess this only works for old version.

For OS5.0,  deleteCall() doesn't work.

Please use plain text.
Developer
raquibulbari
Posts: 137
Registered: ‎09-30-2009

Re: Deleting call logs: Waiting is the solution

Does it work for OS 5.0?

----------------------
Press like if you find a message helpful
---------
Please use plain text.
Contributor
holkar_abhi
Posts: 27
Registered: ‎02-28-2011

Re: Deleting call logs: Waiting is the solution

yeah could any one update please  on this thread.

 

 

Simon suggest it has a solution . But even I do think it doesnt work for OS 5.0 .

 


Cheers,

~Abhi

Please use plain text.