PhoneLogListener

What is the PhoneLog updated and what is the informed PhoneLogListener an outgoing call?

I had figured it out. I wrote code and goes back.

The CallLogAdded in a PhonelogListener is triggered when the call is completed. See the ChangeLog

Journal: 2010-03-07 12:12:51 redirector: connected the phone number: + 468122xxxxxxx
Journal: 2010-03-07 12:12:51 redirector: received a type 'a' phone number: + 468122xxxxxxx
Journal: 2010-03-07 12:12:59 redirector: internal call.
Journal: 2010-03-07 12:17:30 Auditor: Hoo hoo, added newspaper appeal

Ok. Now I have the ability to delete this log entry. I've read elsewhere in this forum that I just have to wait a bit before doing this (like 2 seconds).

Just find a nice model how run the newspaper. In the JDE samples are all just awful.  22 pages long!

Tags: BlackBerry Developers

Similar Questions

  • Remove participant number of Conference call logs.

    Hi all

    I want to delete any number of participants of conference call logs programmatically. I had a class in which I implement PhoneLogListener interface.

    {} public void callLogAdded (CallLog callLog)
    TODO self-generating method stub
    NewLog ConferencePhoneCallLog = new ConferencePhoneCallLog)
    new Date (callLog.getDate () .getTime ()), callLog.getDuration (), callLog.getStatus (),.
    New PhoneCallLogID ((callLog (ConferencePhoneCallLog)) .getParticipantAt (0) getNumber()).
    New PhoneCallLogID ((callLog (ConferencePhoneCallLog)) .getParticipantAt (1). getNumber()), callLog.getNotes ());
            
    If (newLog.numberOfParticipants () > = 2) {}
    newLog.removeParticipantAt (1);
    }
    }

    is it possible to do? Help, please...

    creating an instance isn't the right thing to do.
    you get the added object callLog, check if it is a ConferencePhoneCallLog (instanceof), then remove the participant.

    You may need to remove the object from the list and add new, try everywhere.

    Note I've known problems by doing this directly, I used a thread sleeping for 1 second with success. Try it with a simple approach first well.

  • Problems in the earpiece of the phone

    Hello everyone...

    I'm working on a project in which I have to take a real log all incoming and outgoing calls and missed calls...

    I use headset for this phone but I am little problems with it...

    (1) public void callInitiated (int callId) is called twice for each call...

     public void callIncoming(int callId) {
    
              checkCall2("call Incoming", callId); 
    
        }
    public void callInitiated(int callId) { 
    
             checkCall2("call Initiated", callId);
    
        }
    

    While I use the same function in public void callIncoming (int callId) that is running normally (once for each call).

    (2) I need to get the duration of calls when calls are complete... I use

    public void callDisconnected (int callId) &

    public void callEndedByUser (int callId)

    in the following way:

    public void callDisconnected(int callId) {
    
              PhoneCall callInfo = Phone.getCall(callid);
    
              int elapsedOut = callInfo.getElapsedTime();
    
              String  phoneNumberOut = callInfo.getPhoneNumber();
        }
    

    But his NullPointer Exception always launch for "callInfo '...

    I don't know why its happening... and if this is not the right way to do this, then please show me the right way... Help, please!

    Thank you in advance...

    bug callInitiated is known, we must put in place a protection device (timestamp or a Boolean in conjunction with the callId).

    But why don't you use the phoneloglistener? you get all the information you need, not you?

  • Inbound/outbound call phone number, phone logging listener?

    Yes. There is that a phone of object exists, there is an onCallUpdated signal. But how to retrieve the phone number?

    Another question - in BBOS has been object of PhoneLogListener. I can't find an alternative to new BB10. How to access phone log?

    You can access the sender of a signal by calling sender(), in your case it would be the class phone I guess.

  • is not abstract and does not substitute the abstract method callLogRemoved (net.rim.blackberry.api.phone.phonelogs.CallLog)

    Can someone tell me why im getting the following error

    is not abstract and does not substitute the abstract method callLogRemoved (net.rim.blackberry.api.phone.phonelogs.CallLog)

    callLogRemoved is set, I tried to remove it and it also gives me the same error

    Here is my code

    Thanks in advance for answer

    Net.rim.blackberry.api.phone import. *;
    Net.rim.blackberry.api.phone.phonelogs import. *;
    //*******************************************************************************//
    public class mylistener extends Thread implements {PhoneLogListener}

    {} public void callLogRemoved (int arg0)
    System.out.println("/***/"); "
    System.out.println ("CallLog removed');
    System.out.println("/***/"); "
    }
    {} public void callLogAdded (int arg0)
    System.out.println("/***/"); "
    System.out.println ("CallLog added");
    System.out.println("/***/"); "
    }
    ' public void callLogUpdated (int arg0, int arg1) {}
    System.out.println("/***/"); "
    System.out.println ("CallLog update");
    System.out.println("/***/"); "
    }
    {} public void reset()
    System.out.println("/***/"); "
    System.out.println ("CallLog Reset");
    System.out.println("/***/"); "
    }

    }

    Javadoc documentation:

    public void callLogRemoved (CallLog cl)

    but you have coded:

    public void callLogRemoved (int arg0)

    An int is not a CallLog, so these signatures do not match.

  • keyboard on the Storm is suppressed by the Global screen

    Hello

    I want to display a pop-up screen after each phone call. The user can do some simple entries in this screen.

    I did it in the PhoneLogListener callLogAdded as follows:

    public void callLogAdded (CallLog cl)

    {

    ...

    Synchronized (application.getEventLock ())

    {

    If (NeedShowThisScreen())

    {

    UI UiEngine is Ui.getUiEngine ();.

    Screen AfterPhoneScreen = new AfterPhoneScreen();

    ui.pushGlobalScreen (screen, 1, UiEngine.GLOBAL_QUEUE);

    }

    }

    }

    It works fine on the other models other than Storm.

    The Storm, even I put emphasis in the editbox in this screen, the keyboard is displayed.

    What have I forgotten?

    Thank you

    Jerry

    I think I solved it.

    This is because the overall screen in the middle of the screen by default, so there is not enough room for the keyboard.

    I just move the screen up by crushing the sublayout() of the popupscreen.

    It seems ok, except the popupscreen room is much smaller, I need to reassign the screen layout.

  • Deleting call logs: the waiting is the solution

    There are several positions dealing with the removal of the call logs. A problem on older versions of devices/OS, is that the deleted call log on the unit during a restart. This is consistent with the behavior of the Simulator.

    I found a working solution after a colleague fell on the problem again today.
    It seems that the question is based on a timing problem in the operating system, when the callLogAdded (of the PhoneLogListener) is called the phonelog is not yet written to storage. If you delete the log now another process still works on it and it stays on the phone.

    I solved this problem by running the removal in a new thread and issueing a sleep (2000) before deleting the call log. The 2000 is chosen at random, I don't want to use too much time on it and deleting is not time critical.

    I just wanted to post an update to this issue, MSohm wrote that it was reported, but I have found no information about it being fixed.

    just a post to mark the thread as solved

  • Manipulation of the Phonlog but without success in removing an element

    Hello

    I wrote a small application that needs to manipulate the last entry in the phonelog. I want to replace the number dialed by a custom filter. Only the custom number must be in the newspaper. Writing number custom works very good journal but by removing the number dialed does not work. I read in another thread that der had a problem with the removal of items phonlog in v4.2. I develop on version 4.5 fact that the problem persists or I did something wrong (see list below).

    import java.util.Vector;import net.rim.blackberry.api.phone.phonelogs.CallLog;import net.rim.blackberry.api.phone.phonelogs.PhoneCallLog;import net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID;import net.rim.blackberry.api.phone.phonelogs.PhoneLogs;import net.rim.device.api.system.PersistentStore;import net.rim.device.api.util.StringMatch;
    
    public class PhoneLogListener implements     net.rim.blackberry.api.phone.phonelogs.PhoneLogListener {
    
      private AsteriskMenuItem caller;  private boolean editFlag = false;
    
       public PhoneLogListener (AsteriskMenuItem theMenuItem)    {     caller = theMenuItem; }
    
      public void callLogAdded(CallLog cl) {
    
              PhoneCallLog myLog = ((PhoneCallLog)cl);
    
              //get ne number to be write in the log            String participantNumber =  (myLog.getParticipant()).getNumber();         //get the current service number from the persistent store (String)           Vector persStore  = (Vector) (PersistentStore.getPersistentObject( 0xd4b6b5eeea339daL )).getContents();           String currentServiceNumber = (String)persStore.firstElement();
    
              //if the participantnumber starts with the servicenumber we did come from the application and want to edit the logentry           if (participantNumber.startsWith(currentServiceNumber));          {             //set the number we want to show                                myLog.setParticipant(new PhoneCallLogID(caller.getPhoneNumber2()));
    
                                    //remove the listener to prevent an endless loop                PhoneLogs.removeListener(this);
    
                                    //---> the folowing does not work                    //(PhoneLogs.getInstance()).deleteCall(0, PhoneLogs.FOLDER_NORMAL_CALLS);             //---> the folowing works                                (PhoneLogs.getInstance()).addCall(myLog);           }
    
       }
    
     public void callLogRemoved(CallLog cl) {      // TODO Auto-generated method stub
    
      }
    
       public void callLogUpdated(CallLog cl, CallLog oldCl) {       // TODO Auto-generated method stub
    
      }
    
       public void reset() {     // TODO Auto-generated method stub
    
      }
    
    }
    

    The invokeLater proved to be crucial for my scenario.

    You can learn more here:

    http://tinyurl.com/dlg36t

    Or search through the forums.

  • Error PhoneLogs.addListener (this)

    Hi, I have the following code, which adds a phoneloglistener to the phonelogs.

    On the system 4.3 or later, all right.

    but when I do the test on 4.1, it seems that there is an error on PhoneLogs.addListener (this);

    It refers to an exception instance... advice?

    Thank you.

    class XXXPhoneLogListener implements PhoneLogListener

    {

    public XXXPhoneLogListener)

    {

    try {}

    PhoneLogs.addListener (this);

    }

    catch (NullPointerException e)

    {System.out.println (e.getMessage ()) ;}}

    }

    {} public void callLogAdded (CallLog cl)

    ...

    }

    }

    Hi, thanks for the response.

    The problem has been resolved.

    This is because there is a log of phone calls security option.

    On the new phone, there will be a prompt requesting access authorization to the log of phone calls, but on the old version of the blackberry handheld, such as 7250, the line does not work, even if it is set to 'ask '.

    In any case, after you set this option to 'allow', the program works.

  • The call coming and it's time to talk.

    I want to do something like.

    When the call comes and picked up then get her number of incoming call and it's time to talk.

    How can I achieve this.

    I work the first time on this type of application.

    Can someone tell me how can I do this with some piecs code.

    Coz it is very very urgent.

    Thank you

    Nitin

    See, PhoneLogListener is a listener that fires an event (which you choose) when this change occurs.

    In this case, we take calllogadded... so every time a new call log is added, it will run the code it contains.

    as regards the closing of the application goes... like I said earlier... I used an application of auto start as module system with no screen, no icon... that began with the start of the phone and still don't run in the background...

    But if you use screens in the application, it will be the icon... and then the second method (overrides the onClose method) can be used on the screen, when you exit the application.

    It will do this: when you close this screen where you will exit the application, the application will not be left but sent to bottom and appears in the application, just like any other background running application Ribbon... and will continue to do what he does... In our case get the logs of calls received.

    It could be that useful...

  • ObjectGroupReadOnlyException PhoneCallLog.setNotes - bug?

    I'm trying to change the registry, but I ObjectGroupReadOnlyException. What is the problem in my code?

     private static final class MyPhoneLogListener implements PhoneLogListener
        {
    
            public void callLogAdded(CallLog arg0) {
                // TODO Auto-generated method stub
                if (arg0 != null)
                {
                    if(arg0 instanceof PhoneCallLog)
                    {
                        try
                        {
                            PhoneCallLog _mv = (PhoneCallLog)arg0;
                            PhoneCallLog ungrouped_pl = (PhoneCallLog)ObjectGroup.expandGroup(arg0);
                            String sNotes = "Test note";
                            ungrouped_pl.setNotes(sNotes);
                            ObjectGroup.createGroup(ungrouped_pl);
                            arg0 = ungrouped_pl;
                        }catch (Exception e)
                        {
                            System.out.print(e.getMessage());
                        }
                    }
                }
    
            }
    
            public void callLogRemoved(CallLog cl) {
                // TODO Auto-generated method stub
    
            }
    
            public void callLogUpdated(CallLog cl, CallLog oldCl) {
                // TODO Auto-generated method stub
    
            }
    
            public void reset() {
                // TODO Auto-generated method stub
    
            }
    
        }
    

    No help?

    Very well. I found another way to solve my problem by myself.

  • phoneListeners must be removed?

    Hi, I have a question:

    I've set up two headphones in my application: PhoneLogListener and AbstractPhoneListener. I just wanted to know how they work, so I added a different dialog box for each method of these listeners so that I knew how. When I closed the application (System.exit (0)), dialog boxes if still displays (when calling incoming, disconnect etc.). the problem disappeared when I add to my functions remove() code and removed the two Auditors before closing the App. in fact, I thougt they opposed die when I close the app and I'm surprised it didn't. Can someone there comment?

    Kind regards

    You can't cancel timers or threads, they all run in your application context.
    headphones to execute in the context of another application.
    This means that the phone application has a reference to your look (and your entire application).

    I'm not absolutely sure of how this is handled by RIM because they're using "weak references" and I don't know what he does.
    What can happen is that you start an application, save a listener and close. It again, save a listener, and now your earpiece is called twice.
    My guess is that a weak reference does not keep your entire application loaded but it connect again if the app comes back a second time.

    I hope that I don't confuse you, to sum up: remove all the earpiece that is registered with an external application.

Maybe you are looking for

  • video loading

    Hi, until very recently (was able to look at things such as BBC iplayer and arkvid links to anime and other programs of television, but after September 18 I was unable of videos, youtube content works but most of the others do not seem to work for so

  • Satellite Pro A300 PSAGDA-02000R, driver missing in Windows 7

    After a clean install of Windows 7 Ultimate, I met a pilot that I can't know what it is.As far as I know on this topic is on system compatible ACPI Microsoft and also the path of the device instance is ACPI\TOS6205\2 & DABA3FF & 1Any ideas?

  • Re: Satellite A300 - 1 5 - unexpected shutdown

    I am facing a problem when using my laptop Toshiba Satellite A300 - 1 5. My computer suddenly stops almost every day... Before that happens, my computer is not responding and I received several messages like: ATI Display driver stopped responding, bu

  • No USB 2.0 driver available for HP p7-1254 (for the installation of Windows 7)

    P7-1254 HP DesktopWindows 7 Edition Home Premium 64-bit I replaced my hard drive and do a clean installation of Windows 7.I already found the drivers from hp.com site, and I am familiar with the order and the process of installing the driver on this

  • charger in place Tablet hp 10(1)

    Sometimes the Tablet does not load, have to wiggle the cord. Does anyone have a similar experience? Last night I was at 5% and frustrrated with him, stop and start, seems to work when the Tablet is placed flat, better?  Contacted HP support who wante