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: 235
Registered: ‎11-12-2008
My Device: Not Specified

Can't delete the calllog from Blackberry OS 6.0

Hi,

can any one got the success of deleting the call log from Blackberry OS 6.0 and above..

If yes ,please provide a piece of code.

The below code doesnot delete the call log...from OS 5 onwards...

 

PhoneLogs logs = PhoneLogs.getInstance();

int lenNormal = logs.numberOfCalls(PhoneLogs.FOLDER_NORMAL_CALLS);
for (int i = 0; i < lenNormal; i++) {
logs.deleteCall(i, PhoneLogs.FOLDER_NORMAL_CALLS);
}

int lenMissed = logs.numberOfCalls(PhoneLogs.FOLDER_MISSED_CALLS);
for (int i = 0; i < lenMissed; i++) {
logs.deleteCall(i, PhoneLogs.FOLDER_MISSED_CALLS);
}

 

 

Thanks

Developer
Posts: 19,624
Registered: ‎07-14-2008
My Device: Not Specified

Re: Can't delete the calllog from Blackberry OS 6.0

There have been a number of other similar Threads raised on the forum.  Have you been through these?  Search box near top right in case you hadn't noticed. 

Developer
Posts: 235
Registered: ‎11-12-2008
My Device: Not Specified

Re: Can't delete the calllog from Blackberry OS 6.0

hi,

Yes i saw,...with unsuccessful result...

do u have any code which ran successfully..on OS 6

Please if u have ..please provide...

Thanks