phoneCallLog remove still does not?

There are several postings on the removal of the phoneCallLog and it does not work. I wonder if this problem has been resolved. I wrote the code to remove the last entry, including suggested 2 seconds sleep before attempting to remove. The deletion is verified by make me a reminder at CallLogRemoved.

However, the entry is always present in the log. I tested in 4.6 and 4.7. Someone knows the status of this problem or if there is a solution.

Try with this code:

public void callLogAdded(final CallLog cl) {        if (cl instanceof PhoneCallLog) {//discard conference call log

            UiApplication.getUiApplication().invokeLater(new Runnable() {

                public void run() {                    PhoneLogs pl = PhoneLogs.getInstance();                    long clTime = cl.getDate().getTime();

                    if (!deleteCallLog(pl, PhoneLogs.FOLDER_MISSED_CALLS, clTime)) {                        deleteCallLog(pl, PhoneLogs.FOLDER_NORMAL_CALLS, clTime);                    }                }            }, 800, false);        }    }

     /**     * @author Soleil www.i-softwarelabs.com     * @param pl PhoneLogs instance     * @param folder PhoneLogs.FOLDER_*     * @param clTime calllog's date     * @return      */    private boolean deleteCallLog(PhoneLogs pl, long folder, long clTime) {        CallLog callLogObj;//temporary store call log object for casting        PhoneCallLog clTemp;

        try {            int numOfCall = pl.numberOfCalls(folder);            for (int i = numOfCall - 1; i >= 0; i--) {                callLogObj = pl.callAt(i, folder);                if (callLogObj instanceof PhoneCallLog) {                    clTemp = (PhoneCallLog) callLogObj;                    if (clTemp.getDate().getTime() == clTime) {//compare time                        //#ifndef OS5.0                        if (folder == PhoneLogs.FOLDER_MISSED_CALLS) {                            clTemp.setType(PhoneCallLog.TYPE_MISSED_CALL_OPENED);                        }                        //#endif                        pl.deleteCall(i, folder);//delete                        return true;                    }                }            }        } catch (Exception e) {            ExceptionLogger.logEvent(e, "Delete a call log exception.");        }

        return false;    }

Tags: BlackBerry Developers

Similar Questions

  • Does not work. Removed from Firefox and downloaded. Still does not work.

    Can't use Firefox to access the internet. Deleted Firefox and downloaded again. Still does not connect to the internet.

    The works of Windows Internet Explorer.

    See this support article - difficulty of problems connecting to websites after Firefox update

  • HP Pavilion g7-2200sa Notebook: disassembled and cleaned cooling fan but still does not

    Hi guys,.

    A few days ago my cooling fan packed in and my laptop closed indicating a 90 b cooling fan error.

    I have disassembled the laptop, removed the fan and clean all the dust from the fan and the exhaust gas (there was a good amount in there, the exhaust seemed quite blocked upward).

    Him having moved up the cooling fan still does not spin. What should I do next? I am happy to buy and adapt a new fan but wanted to be sure that would solve the problem?

    Thanks for your help

    Hey guys,.

    Incase anyone is interested. I bought the new blower for the sake of £6, he set up earlier and it works fine.

    If you plan to try it yourself, I had never taken apart a laptop before, I watched some videos on youtube and then for what he

  • Windows XP system repair and commmand prompt still does not

    I'm still having a promblem with my computer. System repair and command prompt still does not. I got a response from Joselbarra, but I can't find the link to meet him. So if you see this here some answers to the questions you asked. My system is microsoft windows XP Edition family version 2002, service pack 3 (although in Add or remove programs there are no size MB next to service pack 3 and all my windows programs).

    I do not have anti virus and have ever since I bought my computer 6 years ago (I know, but I'm paying for it now).

    My /CDDVD player has not worked for about 2 years.

    Windows XP is already installed on my computer when I bought it. The CD only I can find is Microsoft Works 7.

    My problem is that system restore was taking more than an hour to work. Then I disabled my jeanmarie, until it gives me the message that my restore was successful (or not). When I turned it on again it seemed have lost all value files and text processing, user account, microsoft msn password. So I can't access the internet to download anything.

    I tried through the command prompt as Joselbarra suggested. VBScript and jscript regsvr32 succeeded. However I mshtml was not. I had messages that said.

    LoadLibrary ("mshtml"), the failled specified module could not be found.

    No name of the specified DLL.

    use: regsvr32 [/ u] [/ s] [/ n]

    Dllname [/i [cmdline]]

    / u unregister Server

    s silent; dispalay message box

    i - call. Installation of DLLs on optional [cmdline]; When used with / u calls dll uninstall

    As you can imagine, my mind is filled with jargon tenical and I'm not the wisest Please HELP someone.

    Here is the link to your previous topic.

    http://social.answers.Microsoft.com/forums/en-us/xpperformance/thread/4c2402e8-4668-425F-9163-a5b6960dee16/

    I do not vote for me I'm not here for points. If this post helps you, vote. Visit my forum @ http://repairbotsonline.com/

  • Windows Update error code: 80072EFE - (firewall turned off, MS Fixit ran and still does not) any other suggestions

    Hello

    We had our computer offline since February and that you try to update windows (we're on vista). We get the error 80072EFE code after a long wait.
    I have been through the forums and tried the microsoft fixit and turn off our firewall. It's the things that we tried-http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80072efe-or-80072f76
    I need a few suggestions more...
    Thank you in advance. Kath.
    We had our computer offline since February and that you try to update windows (we're on vista). We get the error 80072EFE code after a long wait.
    I have been through the forums and tried the microsoft fixit and turn off our firewall. It's the things that we tried-http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80072efe-or-80072f76
    I need a few suggestions more...

    Even if you * know * you just did this - that in that order...

    Check your time zone and time are correct.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    Reset.

    Now reset your Windows with this FixIt components update:
    How to reset the Windows Update components?

    Reset.

    Try to get updates.

    If it still does not work, try this...

    1. Start an elevated command prompt.
    2. Run the following commands pressing on enter after each line:

      net stop wuauserv

      CD %SystemRoot%\System32

      Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

      net start wuauserv

    3. Reset
    4. Try to reinstall updates

    * Important * When you do this, the following problems occur:

    • Updates that are currently downloaded but which have not yet been installed must be downloaded again by using Windows Update or Microsoft Update.
    • When you remove the Software Distribution folder, your download history is deleted.
    • If you currently receive updates from Microsoft Update and Windows Update, you will need to reselect this option from the Windows Update Web site.


    * Note *
    if the problem is resolved and you can successfully download and install the updates, you can delete the directory SoftwareDistribution.old to recover disk space.

  • I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I was not able to open my my Adobe Illustrator application after update. He says there are a few problems with the preference but after following the instructions, Illustrator still does not work and it keeps giving the samei question. Help, please.

    I think you are talking after upgrade to CC 2015 you're not able to launch I. Also, I believe you speak for read only matter of preference.

    After following the instructions please do not launch Illustrator and check your file preference if the permissions have been set correctly. A good way would be to get inside the preferences folder and then try to create a file manually. If it succeeds, please write to [email protected]

    A few external links to help you set permissions:

    MAC

    OS X Yosemite: set permissions for items on your Mac

    WIN

    Set, view, change, or remove permissions on files and folders

    r-and-file-permissions/465f2b42-63dd-4486-8dd1-c870290efeed http://Answers.Microsoft.com/en-US/Windows/Forum/windows_vista-Files/How-do-i-change-folde

    Kind regards

    Ashutosh

  • activated via the desktop experience, Flash still does not, why?

    We have servers Windows Server R2 2012.

    I activated the office experience via PowerShell, I checked the addon Flash is on, I cleaned the cache files, I did everything that I could find...

    Flash still does not work!

    I even updated and rebooted the testing server - still no Flash when I visit the page using Adobe Flash.

    What should I do now?

    It's on a test server that never had Flash on it before installing the desktop experience to enable Flash.

    Other servers have had the IE plugin installed, and this plugin can be removed.

    I have run Windows Update to download Flash and IE up to date.

    Thank you, Tom

    Hello

    Have you tried to add the site to the list of "Trusted Sites"? I have enabled the desktop (via the Manager server and PowerShell) experience on a Windows Server 2012 and has been invited to add the site (helpx.adobe.com) to the list of Trusted Sites for the display of the page (http://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-8.html) the flash content.  Windows servers have stricter security restrictions and I often find that I have to add sites to the trusted to have content Sites to display list.

    --

    Maria

  • Cannot connect to the macbook pro guard icloud password request which I changed it too many times I don't remember and it still does not

    Can not connect to macbook pro, that keeps asking for password to icloud I have reset too many times I do not remember. Reinstalled operating system still does not work. Think to screw up the laptop and get back to a Windows machine. Not impressed with Apple.

    To connect to your computer, you must enter your computer in password journal, not your Apple ID.

    Otherwise, provide more details on exactly what is happening on.

    Writing an effective question of communities of Apple Support

  • Firefox does not connect. uninstalled and reinstalled. still does not not after firefoxupdate. IE works now what?

    Unable connect message is displayed for each Web site. IE works fine. I think the problem has something to do with the Firefox update I got this morning from notification. I have uninstalled/reinstalled Firefox and the problem persists. I tried the restart without Add-ons, still does not work. What's next?

    Hello, Barnetta, normally these problems are caused by a security/firewall software which does not recognize and therefore blocks the new versions of firefox. If please delete all the rules of the program for firefox to your firewall and let it detect the new version of the browser again.

    Difficulty of problems connecting to websites after Firefox update

  • How to fix iTunes?. It no longer starts. I reinstalled 10.3 and updated 10.6.8 repaired, repaired disk permissions, but it still does not boot to the top. TIA Pietrowiak

    How to fix iTunes?. It no longer starts. I reinstalled 10.3 and updated 10.6.8 repaired, repaired disk permissions, but it still does not boot to the top. TIA Pietrowiak

    There is a Snow Leopard update that would probably help.  It's called 10.6.8 Combo update.  Download and apply.  Then discover iTunes.

    https://support.Apple.com/kb/dl1399?locale=en_GB there is also a supplement that should also be downloaded.

    http://support.Apple.com/kb/DL1429

  • New synchronization still does not (/ questions/1007210)

    I have a PC (Windows 7) and I would like to save my favorites, etc., I move on to another PC, so I made sure I had the latest version of firefox and synchronization. I created an account of synchronization and and received a message that synchronization would begin momentarily, but nothing has changed (it has been over 2 hours). I also tried the option "Synchronize now" under Tools. Is there a way to know if it still works, because there is no status bar?

    I tried selecting all items to synchronize and disconnection and reconnection to firefox and still does not.

    Thank you.

    Hi Scotty1234 and Wesley,
    Up to now, I understand that sync is not synchronizing bookmarks between an old pc and new pc. The settings have been checked and the account has been disconnected and reconnected.

    Please try the following before making the changes: back up and restore the information contained in the profiles of Firefox in this way a work can approximately be move bookmarks manually as a last resort.

    Then on the old pc go in accounts.firefox.com and a logout and then back in. Do the same for the new pc. This should start the synchronization.

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and reinstalling and it still does not work.

    The sign + to add a new tab has suddenly stopped to work earlier. I tried uninstalling and reinstalling and it still does not work. What can happen and how to fix it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • HP Pavilion x 2 removable: keyboard does not not (k3f23ea)

    my laptop was working fine until recently. the removable keyboard does not work and when ot not

    Yes that's what I'll do. Thank you.

  • Cloud Computing from Toshiba service still does not

    Why is the Cloud of Toshiba service still does not, he did for months now that the service has been unreliable.
    I had many problems with the service Cloud from TV Toshiba, my TV is just more under warranty and no cloud services now work correctly.
    I found several reviews about the length of password and IP addresses and everything in the correct room works.
    Very disappointed with Toshiba support service East of rubbish.

    Posted by foxchrisamr
    Why is the Cloud of Toshiba service still does not, he did for months now that the service has been unreliable.
    I had many problems with the service Cloud from TV Toshiba, my TV is just more under warranty and no cloud services now work correctly.
    I found several reviews about the length of password and IP addresses and everything in the correct room works.
    Very disappointed with Toshiba support service East of rubbish.

    You do not mention your model and services that do not work, how can you expect then, that anyone is able to help you?

Maybe you are looking for