Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
kaushikdeepak
Posts: 15
Registered: 12-22-2010

Problem delete call Log in OS5.0 and above

hi,

I am trying to delete data of normal call and missed call.but i am able to delete data from inside loop but it doesn't delete from callLog view in phone memory means its  instance doesn't clear completely.Same code working fine in below OS5.0.Is there any problem regarding OS or any new method to delete call Log.I posting my code below...

 

..

..

//here, it wipe the call Log details          
            public void wipeCallLogDetails()
            {
                PhoneLogs _callLog=PhoneLogs.getInstance();
                int noofNormalCalls = _callLog.numberOfCalls(PhoneLogs.FOLDER_NORMAL_CALLS);
                int noOfMissCalls=_callLog.numberOfCalls(PhoneLogs.FOLDER_MISSED_CALLS);
           
                for (int i = noofNormalCalls - 1; i >= 0; i--)
                {                  
                    try
                    {
                         _callLog.deleteCall(i,PhoneLogs.FOLDER_NORMAL_CALLS);
                 
                    }
                    catch(Exception e)
                    {
                        System.out.println(e.toString());
                        e.printStackTrace();
                    }
                }           
                for (int i = noOfMissCalls - 1; i >= 0; i--)
                {
                    try
                    {
                      
                        _callLog.deleteCall(i,PhoneLogs.FOLDER_MISSED_CALLS);                    
                    
                    }catch(Exception e)
                    {
                         System.out.println(e.toString());
                         e.printStackTrace();
                    }
                   
                }
            }            

I didn't understand what the problem is coming .I run this code in simulator in os4.7 storm and OS 6.0 torch.

please help me on this........



Please use plain text.
Developer
simon_hain
Posts: 10,780
Registered: 07-29-2008
My Carrier: O2 Germany

Re: Problem delete call Log in OS5.0 and above

check the bugtracker
https://www.blackberry.com/jira/secure/Dashboard.jspa

i think there is a bug that the log item is removed from the internal storage, but still displayed. only after a reboot the item is removed from the view as well.
----------------------------------------------------------
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.

peter_strange wrote:
"This process should happen traumatically for you in both JDE and Eclipse."
Please use plain text.
Contributor
kaushikdeepak
Posts: 15
Registered: 12-22-2010

Re: Problem delete call Log in OS5.0 and above

Is there any workaround solution for this problem?
As you mention delay in your post regarding this is not work in OS5.0 and OS6.0.
Please use plain text.