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


Tektronix TM5006A Mainframe with SI-5010 Programmable Scanner picture

Tektronix TM5006A Mainframe with SI-5010 Programmable Scanner

$299.97



Keithley 707 Switching Matrix Mainframe 7073 Semiconductor Matrix Card picture

Keithley 707 Switching Matrix Mainframe 7073 Semiconductor Matrix Card

$299.99



Comrex STAC Mainframe Telephone Talk Management System picture

Comrex STAC Mainframe Telephone Talk Management System

$860.00



Hp Agilent 70001A Mainframe 70420A Opt 201 Test Set  picture

Hp Agilent 70001A Mainframe 70420A Opt 201 Test Set

$500.00



Tektronix 7904 Oscilloscope Mainframe  w/ 2x 7A26 2x 7B92A Modules picture

Tektronix 7904 Oscilloscope Mainframe w/ 2x 7A26 2x 7B92A Modules

$399.97



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$1100.00







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