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);
}

Tags: BlackBerry Developers

Similar Questions

  • How to save and export the address book from thunderbird to MS Excel

    I need to save my address book content in a file in order to protect all my contacts in case of PC failure and be able to export it.

    Open the address book window.
    Select tools-export
    To open it in Excel and save it as a comma separated file

  • 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...

  • 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."

  • 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 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

  • 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.

  • 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

  • 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

  • BlackBerry smartphone address book Gone empty even if the contacts are still in memory

    The end of last week, when I tried to save a number, my address book became empty. To make my numbers keep popping up, I had to Option > sort by and change what I have sort by either last or first name, and then SAVE. My numbers then reappearing temporarily. When I ask to say go to my Inbox and then return to the address book, all my contacts are still empty. To make them reappear, I have to change and save the option SORT BY once again. I already checked the FILTER option and self-worth. My version of the OS is 4.2.

    This problem just started this weekend and I have not download or update anything to trigger this bug.

    I tried to watch a similar thread in the forum, but couldnot find this same problem.

    Thanks in advance for advice.

    Laurent

    Welcme on the forums

    Try to enter your filter and unchecking a checkbox is checked.

    Go to the address book

    * Menu button

    * Filter

    * Uncheck the box than anything this is verified.

  • Address book contacts appear suddenly in Skype

    The clean install of Windows 10, installed Skype desktop to find that I suddenly won a few contacts in address book that do not appear in my list of Skype contacts. I can only block contact, no option to remove all

    Here is how I fixed that. I found that Skype on my android phone has been allowed access to my contacts list. I went into settings > device > find applications, tap application manager, Skype and tap, tap permissions and removed everything but storage (only contacts would suffice), back out and tap to storage, click clear data and clear the cache (don't know who is really important here, idc, remove all the things), regularize and open Skype... you will need to identify yourself again and it will ask you permission for whole again. Say no to contacts, everything belongs to you. on your Skype for windows, you need to close the session and back in. unwanted contacts address book disappeared on their own. If you want to be an extremist, uninstall and reinstall Skype.

  • Local address book Win Live Mail has suddenly lost 99% of contacts

    In recent weeks, 99% of my contacts from address book stored locally gone--all before a certain recent date, I think, but I was unable to discover a way to see when a contact has been added to the address book or through what process in-house. From somewhere around 500 contacts (Riddle), I was left with 15, which came very recently. This happened to anyone before? Is the likely cause to be something I did accidentally which can be reversed, or are all that data of address book really parties for good?

    All I get is a barred spiral circle no matter what I fly over.

    Oh dear, too. I don't know that it has been possible. Well, for not to worry - just use the import button to import the VCF files. You can select several ones to import at a time. Sorry about that.

  • How to select a contact from the address book?

    Hello

    I want to select a contact in address book and view it in a BasicEditField of my application.

    What I've done so far is, can call using address book following code.

    AddressBookArguments addressBook = new AddressBookArgumentsAddressBookArguments.ARG_COMPOSE);
    
    Invoke.invokeApplication(Invoke.APP_TYPE_ADDRESSBOOK, addressBook);
    

    But I don't have an idea on how to add selected phone contact to BasicEditField specified.

    can someone give me some information about this.

    any help will be much appreciated.

    Thank you.

    Narendra

    Fill in the address book of your application and use it.

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

Maybe you are looking for