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.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • They can put a man on the Moon, but...

    Just to download text messages from my Inbox to my desktop? I have an i680 and I connect to my PC via the USB port. The proper drivers are installed, and I can transfer files back from the microSD card in the phone to my heart. Why can't I transfer S

  • How to change the attributes on a folder, including all subfolders and files without doing a file at a time?

    Windows operating system.  I get a disk crash and a lot of my restored photos and documents are now set to hidden or read only files.  I would like to reset the attributes of files to remove these attributes, but are not particularly care to do one f

  • After trying to retrieve my E Machine I get the message that she wants the CLIENT MAC ADDR 00 13 d3 6 71 38 c

    client mac addr You had to do a hard full format C drive. It is an EMachine athelon 64 with XP Pro x 86. Had to format it on another computer as Machine E would not. Reinstalled in computer & recovery disk for the computer system responsible for E. i

  • LRT214 VLAN and site to site vpn

    Hello everyone, I am a bit new to the network of this aspect and was looking for some advice.  I am looking for several routers LRT214 to configure VPN site to site to our main office at 4 locations.  There are 2 VLANS and subnets - one for the netwo

  • minimum screen

    I had a problem when I try to open all the sites using my desktop icons. They all open in minimum screen and I have to maximize their. I did no repair for the pc. I had contact with Verizon because my connection speed has seemed to slow down and I to