Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7700591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:44:39+00:00 2026-05-31T22:44:39+00:00

On Blackberry 6.0, I have used the following code to delete all the call

  • 0

On Blackberry 6.0, I have used the following code to delete all the call logs:

    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);
    }

    int total = lenNormal + lenMissed;
    Dialog.alert("Deleted: " + total); 

The dialog box says it has deleted N number of call logs but I still see the call logs in the phone. The program runs smoothly without any exception.

Googling say that: (1) Restart the phone, (2) Introduce some delay if you are deleting inside PhoneLogListener. I have tried those options too. But no luck!

Thanks in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:44:41+00:00Added an answer on May 31, 2026 at 10:44 pm

    It is a known bug that call log entry can not be deleted using: PhoneLogs.deleteCall(). See it here: http://supportforums.blackberry.com/t5/Java-Development/Unable-to-delete-phone-logs/m-p/1587315

    As a hackish solution, you can use input simulation though. For example:

    private void deleteLatestCallLog() {
            UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                public void run() {
                    Invoke.invokeApplication(Invoke.APP_TYPE_PHONE,
                            new PhoneArguments());
                }
            });
    
            UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                public void run() {
                    injectKeyEvent(Keypad.KEY_BACKSPACE);
                }
            });
    
            UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                public void run() {
                    injectKeyEvent(Keypad.KEY_ENTER);
                }
            });
    
            UiApplication.getUiApplication().invokeAndWait(new Runnable() {
                public void run() {
                    injectKeyEvent(Keypad.KEY_ESCAPE);
                }
            });
        }
    

    But this method has a few bugs. It should not be used at all in my opinion 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

hi all i have made application for blackberry .it is working on my Blackberry
I have the code to retrieve the currently running applications in Blackberry. And, I
I have an XML handler being used in the following fashion: SAXParserFactory.newInstance().newSAXParser().parse(new ByteArrayInputStream(response.getBytes()), myXMLHandler);
I have used Netbeans 7.0 for developing Blackberry application with LWUIT framework. And I'm
In the past I have used: import net.rim.blackberry.api.browser.BrowserSession; BrowserSession browserSession = Browser.getDefaultSession(); browserSession.displayPage(http://www.google.com); in
Hi i want to create a multiline Custom Label in Blackberry I have created
I have a BlackBerry app running in the background that needs to know when
I have a BlackBerry app running in the background that needs to know when
i have invoked blackberry calender from my application can anyone tell me how to
I have a Blackberry Torch 9800 that displays as wallpaper a photo that I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.