Managing contacts from address book

In my application, I get the information about a contact that may (or may not) be present in the local address book.

I tried to use BlackBerryContactList.itemsByName (String matching), but as some of you may know, the implementation on the blackberry is not effective when used on devices with large address books.
This question is very difficult to test because I do not have access to a phone with 500 + entries in phone.

one idea I read some time ago was to copy the full address book into a data structure more performance to cope. would consume memory although I think not bad.

someone there experience in this topic and is willing to share his thoughts?
It's perhaps faster, then I'll test method of itemsbyname with an exact string match.

Adding to this topic because I am undertaking this project right now. What to do when my application starts, it starts a background thread that reads the complete address book and saves a few keys to match values against in a few objects of hash table. These hash tables are stored in the RuntimeStore for later use. I tested with 5000 contacts and it took 90 seconds to scan the complete address book and save 3 different values.

The object reference BlackberryContact is the thing that is stored in the hash table, which seems to work fine. I would like to know if someone sees a problem with this approach.

The search for hash table is practically instantaneous. It's initial indexing, which takes time.

Now, I'm looking for a way to be notified on address book updated. Given that in a thread here somewhere...

Tags: BlackBerry Developers

Similar Questions

  • creation of message lists of contacts from address book

    I follow the indicated procedure - selected new mailing-list - he gave a name - close - the problem at this point is that the title of the mailing list does not appear in the pane on the left, but at the top of the list of addresses to the address book used. I can then select contacts to go to the mailing list, but cannot drag and drop them in the sketch. So there's no way to verify what are the contacts in the new mailing list

    In address book, it shows as a subfolder. If you develop you will see in the left pane.
    Write, touch-pane you see what is in your list, unless you do a right click on it and properties

    Your list is not a floating list of addresses, it contains links (only) his address book "master."

  • How do I get Motoblur contacts in address book Google

    Is it possible to export or synchronize both ways with my Google address book? The phone imported all my Google existing contacts fine when I set up Motoblur, but now he shot extra of my social networking sites contacts, I wish that those who appear in my address book on Google as well, but this seems not to be the case.

    I put it in place that when I create a new contact on the phone, it goes into my google address book, it's just the contacts imported from other services which are not. If there is no way to sync it, so is there at least a way to obtain an export CSV of my contacts in motoblur from the phone that I can manually import to a different address book.

    There are apps to export your contacts. And here's one:

    http://www.AndroLib.com/Android.application.androidapp-expcontacts-ZMM.aspx

  • Shutdown of blackBerry Smartphones adding + when a call from address book

    Hi, I have an 8830 from Verizon, and I am currently in China. I use a local prepaid card of SIM of China mobile and it works fine. China mobile phone numbers start with 13XXXXXXXXX. I recorded a number in the address book (for example 13888888888, without country code), but when I open the contact and select the call number 13888888888, one more is added when he calls the number that looks like this + 13888888888... of course, this way the phone makes a call to the United States, which is not what I do. To work around this problem, I need to save the number as 8613888888888, so that when the sign is added, he finds the appropriate country code and the Chinese dial without problem, or save the number as + 8613888888888.

    But I don't want to fix all change all the numbers, and I want to know why it is adding the most? Y at - it an option to disable this feature?

    For info, if I [i] call [/ i] the number manually as 13888888888 instead of calling it the address book, it does not add the most...

    Hi saab_rider and welcome to the BlackBerry Forums

    Try this please, go to the phone (by pressing the green button), menu, options, secruit call, change of an unknown country code, try again and let me know please, thanks.

  • Backflip: Should your social networks have a contact in address book real?

    OK, so I figured out how to add some social networking and all, and ALL my friends on facebook and myspace has entered my real address on my phone book.

    I was wondering if you could change that, as did not not your FB/MS in your real directory on the phone. It's just a WAY for many people. and some people that I actually don't even know.

    If you add your social networks as an account on the phone it syncs all of your friends, etc to your address book. When you view your address book, you can type in the top of the screen and a list of groups will fall, you can select one of them to limit the contacts that you view.

    Alternatively, you can use different ways to track your social networks such as this Facebook app. There are other applications for facebook and other social networks.

    If you delete your social networking accounts, updates will not appear in the universal inbox.

    Advanced the ability to filter which of your social networking contacts follow you on your phone.

  • How to set the priority of the contacts or address book in Outlook Express 6?

    When I type in the name of a recipient in the "to:" field and press 'Send' or press the button 'Find people', Outlook express automatically look in the address book "Shared Contacts" and not "the main identity Contacts' address book and takes the bad contact for this purpose. Can I change this, then it looks in the 'main identity Contacts' address book first? I use an exchange e-mail account. Outlook Express 6. Windows XP service pack 3. Thank you for having a look! Please let know us if you want me to be more specific. See you soon!

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Technet Windows Forums. Here is the link:
    http://social.technet.Microsoft.com/forums/en-us/category/Exchange2010%2cexchangeserver/

  • BlackBerry 10 How do I know what contact in address book belongs to?

    Hello

    I have multiple address books (gmail, Outlook, work, etc...).

    As each address book contains more than 100 + entries, I'm looking for research contacts (starting just type their name!)

    When you view the contact, how we can tell which address book that they belong to?

    When I try editing, you cannot change the addresses that they belong to.

    I don't know that I'm not the only one. Search here... nothing yet... at least I'm not

    Fans of Blackberry super thanks!

    Anthony

    Open the contact in question. At the bottom, click links. He will tell you or lists of contacts that he belongs.

  • Save a Contact in address book

    Someone can help me. What's not in my extract (this work)? I would like to put as a new Contact in the phone

    Address book. IM testing it in the device Simulator.

    try {}
    List of contacts deviceAdrBook = null;
    deviceAdrBook = (list of contacts) PIM.getInstance () .openPIMList (PIM. CONTACT_LIST, PIM. READ_WRITE);
    Contact newBBContact = deviceAdrBook.createContact ();
               
    newBBContact.addString (Contact.NAME, Contact.NICKNAME, "NNNNNN");
    newBBContact.addString(Contact.ATTR_MOBILE,Contact.TEL,"08973263223");
               
    () Invoke.invokeApplication
    Invoke.APP_TYPE_ADDRESSBOOK,
    new AddressBookArguments (AddressBookArguments.ARG_NEW, newBBContact)
    );
    }

    Final solution:

    try {}
    List of contacts deviceAdrBook = null;
    deviceAdrBook = (list of contacts) PIM.getInstance () .openPIMList (PIM. CONTACT_LIST, PIM. READ_WRITE);
    Contact newBBContact = deviceAdrBook.createContact ();
                   
    String [] name = String [new deviceAdrBook.stringArraySize (Contact.NAME)];
    name [contact.NAME_GIVEN] = aBookContact.getFirst ();
    name [contact.NAME_FAMILY] = aBookContact.getLast ();
    newBBContact.addStringArray (Contact.NAME, Contact.ATTR_NONE, name);
                   
    newBBContact.addString (Contact.EMAIL, Contact.EMAIL, aBookContact.getEmail ());
    newBBContact.addString (Contact.TITLE, Contact.TITLE, aBookContact.getJobtitle ());
    newBBContact.addString (Contact.ORG, Contact.ORG, aBookContact.getCompany ());
                   
    String [] addr = String [deviceAdrBook.stringArraySize (Contact.ADDR) new];
    addr [contact. ADDR_COUNTRY] = aBookContact.getCountry ();
    newBBContact.addStringArray (Contact.ADDR, Contact.ATTR_NONE, addr);
                   
    newBBContact.addString (Contact.NOTE, Contact.NOTE, aBookContact.getNotes ());
                   
    newBBContact.addString (BlackBerryContact.PIN, Contact.ATTR_NONE, aBookContact.getPin ());
                   
    newBBContact.commit ();
                   
    () Invoke.invokeApplication
    Invoke.APP_TYPE_ADDRESSBOOK,
    new AddressBookArguments (AddressBookArguments.ARG_NEW, newBBContact)
    );
                   
    showDialogMessage (Main.DIALOG_MESSAGES_CONTACT_ADDED);
    pinNotificationScreen.close ();
    }
    catch (Exception e) {}
    showDialogMessage (Main.DIALOG_MESSAGES_CONTACT_NO_ADDED);
    }

  • BlackBerry smartphones how synchronize us outlook 'contacts' not 'address book '?

    Hello

    I have desktop 6.0.0.285 software, and it seems that there is no option to synchronize contacts... single address book... did I miss something blinding?

    More precisely: Blackberry Desktop Software (device software version 6.0.0.285)

    and uh... a nice on contacts... wrong.

    See you soon!

  • Downloaded Windows 8. Can't see my contact list/address book.

    Where is my address book. Also when I write email and type in the contact that I can auto complete email address? Thank you. Brian

    Hello

    Open your 'people' application...'s all your contacts?

    B Eddie

  • Ways to receive calls from address book on Cisco Telepresence SX20?

    I got many unknown calls on my teleconferencing equipment and I would like to know if there are ways to block these calls or even perhaps only to receive calls on the address book.

    This has been discussed before in the forums many times more.  Take a look at some of the following threads:

    If your endpoint has a public IP address, depending on the configuration of endpoint, you could get behind a NAT device or restrict access of your firewall to allow only specific IP addresses this conference you with.  If you use H323, you must also disable SIP endpoint.

  • How can I specify which fields from address book to see?

    I would like to see the address of the contact instead of the name of cat. I've looked through the different orders but have been unable to find what I need to do.

    At the end of each column header is a small icon which you can click to display the available columns that are available. Check to see if what you want is available.

  • BlackBerry Smartphones unable to enter numbers from address book

    I think that I have somehow locked the keyboard and I don't know how to cancel.  When I enter a new contact, I enter the name (and first name), title, company, and e-mail address, but I cannot enter phone numbers.  Any advice?

    Thank you!

    Hello

    Let's see if we can change new!

    No data will be lost when you do the following: remove the battery while the device is activated.

    Remplacer replace after one minute, let the device reboot 1-3 min, see if the problem is corrected.

    Thank you

    Don't forget to adjust your thread.

    Put the check mark in the green box containing your answer! Thank you

  • How can I print a list of postal addresses from address book

    I want to print a list of postal addresses on labels

    Try info here:
    https://support.Mozilla.org/en-us/questions/1008958

  • Search great Windows 7 64 bit is no longer showing 2013 Outlook contacts or address book?

    Just installed Outlook 2013 and in the past, I would search for the contacts directly through the great windows search key.

    Results were excellent (used to have Windows 7 32 bit), but this feature is no longer there? Maybe I forgot a configuration setting so that Windows will search contacts too?

    Outlook 2013 does not integrate with Windows Search

Maybe you are looking for