BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-11-2007, 04:56 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: Nov 2008
Model: 8830
PIN: N/A
Carrier: verizon wireless
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Did you ever get an answer to this? I'm having the same problem.
Offline  
Old 11-17-2008, 06:09 AM   #3 (permalink)
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
Post Thanks: 4
Thanked 0 Times in 0 Posts
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 (permalink)
New Member
 
Join Date: Nov 2008
Model: 8830
PIN: N/A
Carrier: verizon wireless
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
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 (permalink)
CrackBerry Addict
 
Join Date: Apr 2005
Location: hamburg, germany
Model: 8900
Carrier: o2
Posts: 838
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10ft Flint & Walling Star #7 Windmill Main Frame
$14.99
10ft Flint & Walling Star #7 Windmill Main Frame pictureHP/Agilent 54120A 20GHz + TEST SET 54121A Oscilloscope Mainframe
$1500.0
HP/Agilent 54120A 20GHz +  TEST SET  54121A Oscilloscope Mainframe pictureCisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules
$1499.99
Cisco OSR-1 SHELF-L-ELH 15-Slot Modular Mainframe Chassis w/Plug-In Modules picturePower Designs AEC-320-9 PSU 12-Slot Plug-In Mainframe & Display Module 5U
$299.99
Power Designs AEC-320-9 PSU 12-Slot Plug-In Mainframe & Display Module 5U pictureTektronix TM502A Portable Power Supply Module Mainframe Chassis
$79.99
Tektronix TM502A Portable Power Supply Module Mainframe Chassis picture






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