Strange thing happens by adding the phone number

Hi all

I'm tring to add a phone number of the phone book.

However, my application brings original request for telephone directory of the instrument. This is the normal behavior?

I want to add in silence, and another thing is that when I click on trackweel on objectChoiceField, it brings also the device [honebook application.

I used the trackwheelClick() action.

    public boolean trackwheelClick(int status, int time)
    {
        Contact contact=null;
        int type=0;
        Field leafField =  this.getLeafFieldWithFocus();
        try
        {
            BlackBerryContactList contactList =
                (BlackBerryContactList)BlackBerryPIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
            PIMItem pimItem = contactList.choose();
            contact = (BlackBerryContact)pimItem;

        } catch (PIMException e)
        {

        }
        if (leafField == okBttn)
        {
            contact.addString(Contact.NAME_FAMILY, BlackBerryContact.NAME_FAMILY, givenName.getText());
            contact.addString(Contact.NAME_GIVEN, BlackBerryContact.NAME_GIVEN, familyName.getText());
            if (pChoice.getSelectedIndex()==0)
                type = BlackBerryContact.ATTR_MOBILE;
            else if(pChoice.getSelectedIndex()==1)
                type = BlackBerryContact.ATTR_WORK;
            else if(pChoice.getSelectedIndex()==2)
                type = BlackBerryContact.ATTR_HOME;
            contact.addString(Contact.TEL,type, areaCode.getText() + phoneNum.getText());
            try
            {
                contact.commit();
            } catch (PIMException e)
            {

            }
        }
        return false;
    }

Please help me solve this problem.

Thank you

DK

Please refer to the example here:

How to-AddressBook access contacts
Article number: DB-00147

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800363/How_To _...

Tags: BlackBerry Developers

Similar Questions

  • ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    Try this from another thread I saw.

    On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...

    Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset

    In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code

    Enter your secret code (4 digits) then choose country and your new phone number

    Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain.  Not the case.  Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored.  Maybe it's all the iCloud account and this master password.  Or maybe it's a bug.  With Apple, we'll never know.

    Also have a look here: get help using iCloud Keychain - Apple Support

  • When I search for businesses, the address appears but is not the phone number. The number is displayed when I use Internet Explorer, so I don't know there is something to block these numbers popping up.

    I'm looking for manufacturing companies. When the info appears, everything is there except the phone number. This does not happen on Internet Explorer, so I know that the problem is inherent to Firefox. Something is blocking the pop up of these phone numbers.

    This has happened

    Each time Firefox opened

    == I started to search for companies

    Oh, if you want to learn more about why Internet Explorer is not a reference to rendering and all that, just ask. I'll be happy to tell you more.

  • Page Web Apple ID is no longer you allow to edit "can be reached to the ' phone number

    The new Page of Apple ID is no longer you allows you to edit a "reachable to the ' phone number.  The 'x' icon does not exist to be reached at the phone number.

    The phone number listed on my apple ID is incorrect and a phone from 2 years ago.

    I checked the number shows correctly on my IOS devices, all my OS X devices (iTunes account etc.) and the imessages and factetime.  I logged on all accounts on all devices (including the facetime and imessages) and reconnected but - Boulard... phone number of apple is ALWAYS incorrect and immutable to appleid.apple.com.  The phone number correctly absolutely everywhere else - shows info billiong, itunes, etc.

    I logged a request for assistance to the Apple and the technical support told me that she is seeing the same thing - so - there is a bug any on the new web page Apple ID.

    Anyone else encounter this problem is strongly encouraged to call Apple Support and connect the bug as well - you can check that your phone number IS correct on the web page of Appleid.Apple.com - FYI.

    Create a new second number and you will then remove one.

  • Call.phoneNumber () does not return the phone number

    I try to use the new method Call.phoneNumber () which was introduced in 10.3:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__system__phone__call.html?f=call#FUNCT...

    Even if I added the permission of read_phonecall_details according to the documentation, I'm still not received the phone number of outgoing calls placed on the device. The call to Call.phoneNumber () returns an empty string.

    I use the Simulator to 10.3 (10.3.0.698) with Momentics 2.1 and placing me calls using the controller.

    Someone managed to get the phone number? Any ideas on how to make this work would be appreciated.

    It is a known problem in the Simulator, but works fine on a real device.  The bug appeared in Issue Tracker here: Call.phoneNumber () always returns a null in the Simulator

  • Get the phone number of the address book on the menu, click

    My app (which has no UI) adds a new menu item to the contacts Blackberry address book... Now, if you click on this menu I would get the phone number to contact selected...

    I did it with the addition of the menu item... But how can I get the phone number of the address book when you click on the menu?

    using code i below contacts called from another application have also recovered the phone number...

    BlackBerryContactList contacts = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY);
    

    But how can I get in my current scenario?

    Oops... How did I miss the best way to get the coordinates of the context of the run method (of the added menu) parameter.

  • getDevicePhoneNumber() provides the phone number with the unicode left-to-right mark

    I use getDevicePhoneNumber (boolean format) ( http://www.blackberry.com/developers/docs/4.6.0api/net/rim/blackberry/api/phone/Phone.html#getDevice... (boolean)) to get the telephone number of my camera. I know that maybe it's not the actual number. I also can't use something else as the pin of the device. I use it to fill a field "my phone number" by default that can be edited manually in the case where the number is not correctly being read on the SIM card.

    It works really well and displays the phone number in the field. However, a thorough review to the string of shows that he has the mark unicode '% E2% 80% 8F' in front of the string. This brand is known in unicode (utf-8) "BRAND LEFT-to-RIGHT ' (sources: http://www.tachyonsoft.com/uc0020.htm and http://unicode-search.net/unicode-namesearch.pl?term=mark ).

    I only experienced it in BB OS 4.6 devices (does not check 4.7 yet), but it seems not to happen in OS 4.5 and below.

    Were there changes to the orientation of the chain in OS 4.6?

    Can I get rid of this brand using String.trim (); or I have to use something else?

    This problem persists on my 9000 "BOLD", but none of my other GPS phones.

    Because it was a pain to try to understand, here's the code I used to solve this problem.

    private String trimPhoneNumber(String phoneNumber){
        byte phoneBytes[] = phoneNumber.getBytes();
        int length = phoneNumber.length();
        int offset = 0;
        if ( phoneBytes[0] == 0x3F ) {
            length--;
            offset++;
        }
    
        return new String(phoneBytes, offset, length);
    }
    
  • Web form: can not get the phone number appears in the email notification

    http://www.rockmitzvah.com/contact/contact4.htm

    try adding a phone number field so that my client can call leads. I tried the phone number field two to the need and not. The resultant thank you screen and just email show that without the phone number:

    Summary of submitting a web form:
    Your name
    j a
    Email address
    [email protected]
    File number
    4388779
    Message
    Phone number

    What is a workflow problem? How should I do?

    Thank you

    j

    Hello

    Name of your phone number field does not match any field of telephone number of British Colombia. You have name = 'Phone number', but BC names name = "HomePhone" and name = "mobile phone".

    Try to reinsert this form on a page and submit.

    See you soon,.

    -mario

  • Apple 'Messages' full automatically to e-mail instead of the phone number

    Hello

    I'm looking to block the 'Messages' Apple software on my Macbook Pro to auto fill email addresses because I send you text messages for android phone to the person. I would prefer that it auto complete to the phone number, but I don't know how (or if) it is possible.

    Thank you!

    Tim

    If you start to type the name of the person, you get a pop-up menu with choice?

  • Need to disable CGI, I have two-factor authentication, but I don't have the phone number or device with me. What can I do?

    Need to disable CGI, I have two-factor authentication, but I don't have the phone number or device with me. What can I do?

    For Apple ID - Apple Support two-factor authentication

    If I can not connect, how I again to access my account?

    If you can't sign in, reset your password, or receive verification codes, you can account recovery application to restore access to your account. Account recovery is an automatic process designed to help you back into your account as soon as possible while denying access to anyone who might be impersonating you. It may take a few days - or more - depending on the specific account information, you provide to verify your identity.

    It will be your option. If you try to find an iPhone with locking Activation that you don't remember the password, you can remove the account from the iPhone with the help of Apple's Support with the receipt of the initial purchase of the iPhone as a way to prove that you are the real owner of this iPhone.

  • How can I change the phone number to use Face Time?

    How can I change the phone number to use Face Time?

    Your phone number come from your SIM, and when you open a session and activate FaceTime. It should appear automatically. If it is not, then I would say that your FaceTime does not complete the activation process. If you go to settings > FaceTime, you see something awaiting activation or waiting for activation under the switch to turn it on?

  • notification of iMessage on Mac displaying the phone number, not name

    Only, I imported my contacts from my phone to my Macbook Air, but whenever I get a notification of text at the top right of my screen, it shows the phone number, not the name of the contact. Once I go into iMessage, the name is displayed. That's all just annoying that I don't know who texted me until I actually open iMessage. iCloud is enabled for my Mac and my iPhone.

    Check system preferences > Notifications > view Message

  • How to insert the phone number in icloud?

    How can I insert phone number in the I cloud id. There is no option to add the phone number.

    Hi, gurkiratfrommoga.

    Please visit Apple support communities.

    Looks like you want to add the number of your iPhone to iMessage and FaceTime.  If this is the case, please see the instructions below.

    If your phone number is missing on your iPad or iPod touch

    Disconnect from the iMessage and FaceTime on all your devices:

    1. Go to settings > Messages > send & receive. Enter your Apple ID, then tap Sign Out.
    2. Go to settings > FaceTime. Enter your Apple ID, then tap Sign Out.

    Reconnect to the iMessage and FaceTime on all your devices:

    1. Go to settings > Messages > send & receive. Click on use your Apple ID for iMessage. Then sign in with your Apple ID.
    2. Go to settings > FaceTime. Click on use your username for the FaceTime Apple. Then sign in with your Apple ID.

    Link your number of iPhone and Apple ID to use iMessage and FaceTime

    See you soon

  • change the phone number in apple ID

    change the phone number in apple ID

    Yes

  • How can I change the phone number in apple ID

    How can I change the phone number in appleid

    Hi alistair290,

    Welcome to the communities of Apple Support! If you want to check or change the linked phone number to your Apple ID for use in iMessage and FaceTime, you can find information and the steps in the following article useful:

    Link your number of iPhone and Apple ID to use iMessage and FaceTime - Apple Support

    See you soon

Maybe you are looking for