BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-11-2007, 04:56 AM   #1
dangihitesh
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 29
Post CallLog updating Problem?

Please Login to Remove!

Hi All,

I having one app in which after voice call has been disconnected i m trying to update calllog with another number. The code works fine but i did not get updated calllog entry. I m getting updated calllog entry after when i restart my simulater/device.

The code is as follows:

public static void deleteAndUpdateLog(String deleteCallLogNumber,
String updateCallLogNumber) {
try {
PhoneLogs logs = PhoneLogs.getInstance();

int index = getIndexOfLatestCallLog(deleteCallLogNumber);
if (index != -1) {
PhoneCallLog calllog = (PhoneCallLog) logs.callAt(index,FOLDER_TYPE);

if (calllog.getParticipant().getNumber().equals(
deleteCallLogNumber)) {

PhoneCallLogID phoneCallLogID = new PhoneCallLogID( updateCallLogNumber);


calllog.setParticipant(phoneCallLogID);

logs.swapCall(calllog, index, FOLDER_TYPE);

//**********OR**************
//logs.deleteCall(index, FOLDER_TYPE);
//logs.addCall(calllog);


}

}

} catch (Exception e) {
System.out.println("Error from calllog" + e);
}


Any solution for this issue....plz help

Thanks in advance
__________________
Regards,
Hitesh
Offline  
Old 11-13-2008, 11:32 AM   #2
neil1967
New Member
 
Join Date: Nov 2008
Model: 8830
PIN: N/A
Carrier: verizon wireless
Posts: 7
Default

Did you ever get an answer to this? I'm having the same problem.
Offline  
Old 11-17-2008, 06:09 AM   #3
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default

Have you used phoneLogListener.
it notifies you whenever the log is updated.

Code:
public class Calls implements PhoneLogListener {
//PhoneListener,
    
    private static PhoneLogs _phoneLogs;
       

    public Calls() {
        
        _phoneLogs = PhoneLogs.getInstance();
        PhoneLogs.addListener(this);
        
    }
}
__________________
having new s for developers!!!

Last edited by abhsax1978@hotmail.com; 11-17-2008 at 06:12 AM..
Offline  
Old 11-20-2008, 10:19 AM   #4
neil1967
New Member
 
Join Date: Nov 2008
Model: 8830
PIN: N/A
Carrier: verizon wireless
Posts: 7
Default

Haven't tried this yet, but I'm not sure this is the solution. I don't want to initiate any action upon changes to the call log, I want to have an app change the call log, and as soon as it does, have the UI to that log (when you hit the green button) reflect it without rebooting the phone. How would I force this?

Thanks!
Offline  
Old 11-21-2008, 09:34 AM   #5
simon.hain
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Default

the bug was issued to rim some time ago and is officially recognized.
__________________
java developer, Devinto, hamburg/germany
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ picture

Vintage V-Mac Industries Inc. Pipe Threader Vosper Drophead Threader - READ

$199.00



Vintage Mac Warehouse  3.5” Floppy Disk Solar Powered Calculator Company Swag picture

Vintage Mac Warehouse 3.5” Floppy Disk Solar Powered Calculator Company Swag

$66.60



Vintage MAC Knife Japan 4.75

Vintage MAC Knife Japan 4.75" Folding Lock Blade Knife Chef Pocket Knife Utility

$224.99



Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver  picture

Vintage Mac Tools AW343 Series 1/2 Pneumatic Impact Driver

$40.00



Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower picture

Vintage MAC Tools UVEX Adjustable Safety Glasses Motorcycle Mechanic Lawnmower

$55.24



Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp picture

Vintage VTG A. W. Mack 122387 Large Industrial Fuse Puller 100 Amp - 600 Amp

$104.99







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.