Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 326
Registered: ‎02-02-2009
My Device: Not Specified

update bb Contact

Hi friends,

In my application when i create a new contact it will copy to blackberry contact too.

but when i update name and address fields of blackberry contact does not uddate, i think for udatng name and address field we have to code some more!




thanks in advance

Posts: 16,987
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: update bb Contact

String[] names = new String[5];
names[BlackBerryContact.NAME_PREFIX] = "whatever";
names[BlackBerryContact.NAME_GIVEN] = "whatever";
names[BlackBerryContact.NAME_FAMILY] = "whatever";
blackBerryContact.addStringArray(BlackBerryContact.NAME, BlackBerryContact.ATTR_NONE, names); 

 just as an example. addresses are stored in a String[7]



feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 69
Registered: ‎01-17-2010
My Device: 9700 Bold
My Carrier: Airtel

Re: update bb Contact

Sorry but i need to update the address field of the contact.....pls provide me if u have some solution for that.




Posts: 571
Registered: ‎04-11-2009
My Device: BB 10 Dev Alpha

Re: update bb Contact

Is there any problem using:


String addr[] = new String [5];

addr [ BlackBerryContact.ADDR_COUNTRY ] = "YourCountry";

addr [ BlackBerryContact.ADDR_POSTALCODE ] = "YourPostalCode";

addr [ BlackBerryContact.ADDR_REGION ] = "YourRegion";


addr [ BlackBerryContact.ADDR_STREET ] = "YourStreet";

blackBerryContact.addStringArray(BlackBerryContact.ADDR, BlackBerryContact.ATTR_NONE, addr);


Kanak Sony

Kanak Sony
http://dodevelopnshare.wordpress.com/ | http://www.linkedin.com/profile/view?id=188131481&trk=tab_pro
Posts: 950
Registered: ‎06-22-2010
My Device: 9550

Re: update bb Contact

Hi Kanak, u mean

we can add Contact in the BB Contact List through Our Application or our code.

Thank u So much. I need it.