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


Fanuc S-RAM Memory Module A20B-3900-0061/02B picture

Fanuc S-RAM Memory Module A20B-3900-0061/02B

$99.95



Fanuc S-RAM Memory Module A20B-3900-0284/01A *New No Box* picture

Fanuc S-RAM Memory Module A20B-3900-0284/01A *New No Box*

$154.95



Make Offer Oem Caterpillar 2613222 Mount Ram picture

Make Offer Oem Caterpillar 2613222 Mount Ram

$75.00



RAM-H4M1-03 -  IGNITION MODULE -  picture

RAM-H4M1-03 - IGNITION MODULE -

$160.00



Single-acting Hollow Ram Cylinder (20tons - 4

Single-acting Hollow Ram Cylinder (20tons - 4") (YG-20100K)

$169.00



2021 Dodge Ram 1500 TRX Ignition Push Start Button OEM 68453905AA picture

2021 Dodge Ram 1500 TRX Ignition Push Start Button OEM 68453905AA

$100.00







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