Retrieve a number contact name

Hello. Given a phone number, I want to search the telephone directory and retrieve contact corresponding to the number in order to get the names of the contacts. I found many examples of how to get a contact based on their names, but I don't know where to start as a number. Any ideas?

is much faster:
Create an object of http://www.blackberry.com/developers/docs/7.1.0api/net/rim/blackberry/api/phone/phonelogs/PhoneCallL... and call getName

Tags: BlackBerry Developers

Similar Questions

  • the names of my contacts will not appear in Imessage on my mac? It is only numbers. Some contact names appear but not much

    in my imessage that I can type peoples contact names and they will come to the top, but then it changes automatically to their number. contacts will be displayed, but not much.

    Hello

    Check the iPhone and Mac use the same service then synchronize Contacts.

    On Mac, including limiting to one account/service.

    There may be problems if the Mac uses iCloud, Google and Yahoo and others all at the same time.

    Most likely this isn't because of two devices sync contact lists.

    21:05 Monday; March 28, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     a few iPhones and an iPad

  • Contact NAME changes are not kept on 4.5 and 4.6, I see a bug?

    I was wondering if this is a known bug in 4.5 and 4.6. This example works on a 4.2.1 Simulator and the device, but does not work for all of the 4.5 and 4.6 Simulator and device I tried. When the altered contact is retrieved again, the name always has the original value. Is there any work around better delete and re-create the Contact?

    BlackBerryContactList contactList = (BlackBerryContactList)PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
    
    Contact contact = (Contact)contactList.createContact();String[] name = new String[contactList.stringArraySize(Contact.NAME)];name[Contact.NAME_GIVEN] = "Homer";name[Contact.NAME_FAMILY] = "Flintstone";contact.addStringArray(Contact.NAME, Contact.ATTR_NONE, name);contact.commit();
    
    contact = (Contact)contactList.itemsByName("Homer").nextElement();name = contact.getStringArray(Contact.NAME, 0);name[Contact.NAME_FAMILY] = "Simpson";contact.setStringArray(Contact.NAME, 0, Contact.ATTR_NONE, name); // This does not stickcontact.commit();
    
    contact = (Contact)contactList.itemsByName("Homer").nextElement();name = contact.getStringArray(Contact.NAME, 0);System.err.println(name[Contact.NAME_GIVEN] + " " + name[Contact.NAME_FAMILY]);
    

    I was able to reproduce it and reported to our development team.  The work around be like you suggested, which is to remove and recreate the contact.

  • Contact names blackBerry Smartphones appears not

    I'm having a problem where most of my contacts names will not display when I receive a call or a text message, only his number. It happened suddenly, and as it seems, randomly.

    I've disabled all content protection, tried to change the settings of smart dial, deleted the event log, tried the reorganization of the contacts list and made a few handfuls of battery.

    Some of the names of contacts work always correctly, but it's few and I can't understand why only these are. I have installed a new software recently or changed settings other than trying to solve this problem.

    BlackBerry Storm 9530

    OS: 5.0.0.32 8

    I also sync Google and Facebook apps related to my contacts

    If anyone has some insight on this issue I would really appreciate it.

    Thank you

    Thanks for the suggestion, which was going to be my next move, but I think I actually solved the problem. I changed the parameters of encryption for contacts on YES. Then I made a sweater battary and activated encryption pulling back and only went to another battery. When he returned to the top it all has been fixed. I think some of the contacts has been quantified and then had a problem of decryption or something.

    Thanks for your help.

  • Apple pays in iOS 10 and iPhone 7 guest "CONTACT NAME REQUIRED" each time

    Why pay Apple invites me for a 'required Contact name' and 'Shipping Contact' whenever I try to use it now in 10 on the iPhone iOS 7?

    I can't find a way to put this info in the portfolio of Apple for the card at all times, so that I don't have to enter each time, which is really annoying.

    Yes, I have this problem too.
    How were your contacts synced, I had via google but all migrated it to iCloud and deleted Google but it did not help.

  • Contacts and contact names do not sync between iPhone and Mac

    Hello

    I have a mini Mac running OS X El Capitan and an iPhone 6 Plus running iOS 9.2.1. I'm having issues synchronize my contacts and contact names in messages. Account of default contact on both devices is set to iCloud and I connected with the same account on both devices iCloud. Help, please!

    They synchronize be it?

    Synchronize calendars? It's test iCloud

  • BlackBerry Smartphones look Contact names when it is locked

    I can't see the Contact name when a call comes when my BB Bold 9700 is "locked."

    Ah. If you are on a corporate BES and you cannot change the option so a COMPUTER policy is on the phone that prevents you from disabling the option.

  • How can I retrieve the number of selection Indices in a ComboBox?

    Hi all

    I use a ComboBox which options are populated by a XML code snippet.

    Now, I said that the task of implementation selectedLabel ComboBox to an option delivered by a different XML snippet.  SelectedLabel is a read-only property, so I find myself with SelectedIndex.  My plan is to loop through all the clues of the ComboBox until the label matches the value that must be set to ComboBox.

    After some rigorous research, I was not able to find a way to retrieve the number of the option of a ComboBox control.

    Thanks in advance and I would like to know what other information you need I'll check back FRO answers often.

    -Mike

    myComboBox.dataProvider.length

    Sincerely,

    Michael

    El 30/04/2009 a las 09:35, greensyn [email protected]> escribio:

    >

    Hi all

    >

    I use a ComboBox which options are populated by a XML code snippet.

    >

    Now I have the selectedLabel said ComboBox for a task

    a different snippet of code XML option.  SelectedLabel is a

    ReadOnly property, so I find myself with SelectedIndex.  My plan is to

    to loop through all the clues of the ComboBox until the label corresponds to

    the value must have the ComboBox value.

    >

    After some rigorous research, I have not been able to find a way of

    retrieve the number of the option of a ComboBox control.

    >

    Thanks in advance and I would like to know what other information you need as

    I'll check back FRO answers often.

    >

    -Mike

    >

  • How to retrieve the number of days of a number

    Hi everyone, from X number, I need to retrieve the number of days.
    For example:

    X = 10-number of days > = 0
    X = 12-number of days > = 0.5
    X = 24-number of days > = 1
    X = 25-number of days > = 1
    X = 34-number of days > = 1
    X = 36-number of days > = 1.5
    X = 37-number of days > = 2
    X = 72-number of days > = 3
    X = 70-number of days > = 3

    I tried with Round, but it did not work as I wanted, because with 36 he recover 2 (instead of 1.5).
    In practice, a half day (12 hours) must be ALWAYS considered 0.5 and unrounded.

    Any idea?
    Thanks in advance

    Alex
    WITH T AS (SELECT 10 X FROM DUAL UNION ALL
            SELECT 12 FROM DUAL UNION ALL
            SELECT 24  FROM DUAL UNION ALL
            SELECT 25 FROM DUAL UNION ALL
            SELECT 34 FROM DUAL UNION ALL
            SELECT 36 FROM DUAL UNION ALL
            SELECT 37 FROM DUAL UNION ALL
            SELECT 72 FROM DUAL UNION ALL
            SELECT 70 FROM DUAL)
    SELECT X, DECODE( MOD(X/24, 1), 0.5, X/24, ROUND(X/24))
    FROM T
    
  • Query to retrieve the number of transactions in every 1 hour for the end

    Hello

    Could someone help to write a query to retrieve the number of transactions in every hour for the last month.

    Case:
    I / P

    If Timestamp1
    1 01/01/2008 00:00:01
    CAS2 01/01/2008 00:01:01
    case3 01/01/2008 01:00:01
    1 01/01/2008 01:02:01
    case4 01/01/2008 01:10:01
    Service5 01/02/2008 02:00:01
    Case6 01/02/2008 02:10:01
    case7 2008-02-01 23:00:01
    .............................

    .............................
    case... 2008-01-31 00:24:00


    O/P
    cases of to_time of time
    2008-01-01 00:00:00 01/01/2008 01:00 2
    2008-01-01 01:00:01 01/01/2008 02:00 3

    .........................
    .........................

    etc.

    Any help really appreciated

    We can do this by using analytic functions

    Here's what I did:

    create table timestamp1 (date of ts)

    Select * from timestamp1
    2008-10-30 15:41:13
    2008-10-30 15:41:05
    2008-10-30 15:40:03
    2008-10-30 14:58:26
    2008-10-30 14:29:45
    2008-10-30 13:17:48
    2008-10-30 08:29:50
    2008-10-30 06:05:51
    2008-10-30 03:41:52
    2008-10-30 02:29:54

    Select distinct to_char (ts, 'hh24') frmhrs,
    TO_CHAR (ts, 'hh24') + 1 tohrs, count (ts) OVER (order by to_number (to_char (ts, 'hh24')) RANK BEFORE (1/24))
    of timestamp1
    When trunc (ts) = trunc (sysdate) - I added this just to make sure that I get for data of today
    order of frmhrs

    FRMHRS TOHRS CNT
    1-3-02
    03-4-1
    06 7 1
    1-9-08
    13 14 1
    14 15 2
    15 16 3

    You can customizeas by your need.

  • Retrieve a mobile Contact number

    Hello everyone and happy new year. I created an EditField I want that the user can click to open the Contacts application, then when a contact is display selected mobile numbers available and lets the user select a. I have done with the e-mail addresses of the Contacts but can't bring back their mobile numbers. I get an argument exception non-compliant when I click on the field to start contacts about below is my code which is just a modified version of the code that I used to retrieve the email addresses:

    public void getContact() {}
    PIM pim = PIM.getInstance ();
    Try
    {
    BlackBerryContactList = contacts
    (BlackBerryContactList) pim.openPIMList (PIM. CONTACT_LIST,
    PIM. READ_WRITE);
    Selected BlackBerryContact = contacts (BlackBerryContact).
    Choose();
    If (selected! = null)
    {
    int mobileNumCount = selected.countValues (Contact.ATTR_MOBILE);
    Check that there is a for this contact's mobile number.
    If (mobileNumCount > 0)
    {
    String selectedMobile;
    If there is more than a mobile display, a dialog box choose
    If (mobileNumCount > 1)
    {
    String address [] = new String [mobileNumCount];
    int [] values = new int [mobileNumCount];
    for (int i = 0; i)< mobilenumcount;="">
    {
    Addresses [i] = selected.getString (Contact.ATTR_MOBILE, i);
    Values [i] = i;
    }
    Dlg = new dialog box dialog box (menu "Select which number to use.", ")
    Addresses, values 0.
    Bitmap.getPredefinedBitmap (Bitmap.QUESTION));
    int selectedAddr = dlg.doModal ();
    selectedMobile = addresses [selectedAddr];
    }
    on the other
    {
    selectedMobile = selected.getString (Contact.ATTR_MOBILE, 0);
    }
    Reference DeclarationScreen =
    (DeclarationScreen) UiApplication.getUiApplication)
    . getActiveScreen();
    theScreen.phoneNum.setText (selectedMobile);
    }
    }
    }
    {} catch (PIMException e)
    e.printStackTrace ();
    }
    }

    Solved. My problem was that I put a listener of changes on my EditField and it overrode keyChar to this field, so when I ran the getContactMethod the fieldChanged() and the keyChar method were contradictory. I just deleted from fieldChanged().

  • Recovery of phone contact names using the number of the person

    Hello everyone!

    I'm working on a SMS application.

    My problem is...

    I want to replace the number (in my Application, Outbox Inbox) name if this contact is in the list of contacts from my blackberry...

    As if I get a text from 909037372 and if I have a contact named "Mike" stored in the native contacts from my phone list with that number. So, what I'm trying to implement is that Messages right. in the Inbox of/Iutbox my request should be replaced by "Mike" instead of display "909037372" as is the case in real Inbox and the outboxes...

    Help, please! I need...

    Thanks in advance...

    You can use the searchByNumber to contactlists. or use a workaround, create a phonecalllog with the number and see if it has a name (the name is provided by the infrastructure of system)

  • Messages: number, bad name right

    I just backed up my iPhone with iTunes 6 and restored my iPhone 7 from the back-up. Now, when I get a text message, it shows that it came from the phone number right but it displays the name of another contact. When I go to contacts, numbers and names are correct. How is what is happening and how to fix it?

    Problem solved:

    When you start the new phone he kept stuck on my iCloud password so I jumped this option. When the phone started, my iCloud showed I was connected and all my contacts were correct. I disconnected icloud, removed from the contacts to the new phone and re-connected to iCloud. Problem solved.

  • My Apple Watch used to show me my contacts name

    When messages come my Apple Watch or call contact won name sucks.

    Hello

    On your iPhone, in the Contacts application, verify that there is a single contact for each person card and contains all their contact information (name, phone number, email traveled.

    It can then help to reset your sync data:

    • On your iPhone, in the application of the watch, go to: Watch My > general > reset > tap reset sync data.
    • Nothing seems to happen, but the process is running in the background / invisible to you, allow some time later it ends.
  • Apple Watch is no longer display of contact names - only the phone numbers on the texts and phone calls

    PROBLEM: When I receive an SMS or a phone call on my IWatch, it now shows only the phone number or e-mail address of the sender, rather than their names.  At the same time my IPhone matched 5 c displays the names of my contacts perfectly list view text message or phone call.  This problem just started occurring in the past week.

    CAUSES: unknown - it worked one day and the next day it didn't.  I don't remember edit particular parameter associated with it. Although my circle of friends on the IPhone appears differently now, too, without the my change.

    TROUBLESHOOTING: I turned off my Iphone, tried resetting, powering my iwatch and checked the settings for the IWatch on my Iphone and my Iphone settings.

    PRODUCTS: My software on my Iwatch says it's updated: OS 2.2.1.

    My Iphone's software is also updated: IOS 9.3.2

    My sister is also having the same problem with his Iwatch paired with a phone SE 5.

    I wonder if this is a recent development and how to fix it.

    Hello

    It can help restore your sync data:

    • On your iPhone, in the application of the watch, go: Watch My (tab) > general > reset > tap reset sync data.
      • Nothing seems to happen when you tap it, but the process will be executed in the background, invisible to you, so allow a few moments it ends.

    If you have not already done so, you can also activate iCloud Contacts:

    • On your iPhone, go to: settings > iCloud - turn on the Contacts.

Maybe you are looking for

  • Strange problem NB100 PLL10E BIOS update

    Hi all I tried to update the BIOS with this version.It's strange, the procedure in the knowledge base are not useful.When having unpacked, it gives only a single file.There is no WinPlash page; It goes directly to the page inside Flash.But BIOS versi

  • I have a wireless Skype phone that does not accept my username and password. How can I fix this

    I have the wireless Skype phone and it does not accept my username or password how do I fix this?

  • XP SP3 makes slow Tecra S5

    With the original Windows XP SP2 installation my laptop (Tecra S5) works very well, but as an example Card SanDisk Extreme 4 GB SD was not detected in the SD card slot. I could only use this card with a card reader device that was connected via USB.

  • Siri is off, but data usage said that it has been used.

    My father was my old iPhone 4S. He is currently having problems of use of main batteries. Today at 12:55 he had 89% battery left and 5 hours later than 11%. Outside text tell me he has a problem, he has not used the phone. His use of the battery indi

  • Alignment HP 4600 printer problem

    Whenever I turn on my PC, the HP Solution Center appears and says that I need to align my cartridges.  I have two and have recently replaced.  How can I get the printer to stop asking me to realign the?  Maybe I should just uninstall your Solution Ce