07-07-2011 12:56 AM
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_CAL
int noOfMissCalls=_callLog.numberOfCalls(PhoneLogs.FOL
for (int i = noofNormalCalls - 1; i >= 0; i--)
{
try
{
_callLog.deleteCall(i,PhoneLogs.FOLDER_NORMAL_CALL
}
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_CALL
}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........
07-07-2011 03:18 AM
07-07-2011 08:55 AM