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
Posts: 48
Registered: ‎10-15-2008
My Device: Not Specified

Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

I need to delete PhoneCallLog and replace it with my custom PhoneCallLog object in my application. PhoneLogs.deleteCall and PhoneLogs.swapCall work on 4.2-4.7 OS versions, but not on 5.0.x OSes

 

Is it a known bug of 5.0.x OS?

Is there are any workaround for this issue? 

 

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

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

try to wait 2 seconds before deleting the call log

----------------------------------------------------------
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
Developer
Posts: 148
Registered: ‎11-16-2009
My Device: Not Specified

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

Try to run in a new thread, when the event is fired start a new thread and process there your work.

Developer
Posts: 48
Registered: ‎10-15-2008
My Device: Not Specified

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

[ Edited ]

This doesn't help. I understand, that actually PhoneCallLog will appear later than callLogAdded method is called by application. 

 

I tried to iterate through all PhoneCallLogs on 5.0 simulator and delete all of them. Nothing happens. 

Developer
Posts: 48
Registered: ‎10-15-2008
My Device: Not Specified

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

Confirmed by Marh Sohm - this is a bug. I reported it to the issue tracker here

 

https://www.blackberry.com/jira/browse/JAVAAPI-1316

Contributor
Posts: 10
Registered: ‎03-30-2010
My Device: Emulator
My Carrier: None

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

As mentioned in this thread, it seems like this still does not work. The link for the bug gives me a "permission violation" error when I try to access it. Has any progress been made on the issue?

 

Thanks,

James

Contributor
Posts: 14
Registered: ‎06-19-2011
My Device: simulator Torch 9800
My Carrier: wired

Re: Blackberry OS 5.0.x :: PhoneCallLog.deleteCall does not work

Hello,

 

I have managed to take a look and ask for an update at the bug report's link but now I am unable to access it anymore (complaining about some permission violation). Does anyone know of post 5.0 devices that do not exhibit this behaviour ? Any available firmware updates fixing this for any post 5.0 device that still exhibits this bugged behaviour ? Latest torch 9800 simulator still has the bug.

 

Thank you