Welcome!

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

Reply
Contributor
Posts: 28
Registered: ‎07-06-2011
My Device: 9800
My Carrier: blackberry developer trainee

Add contact

How i can add a contact to the bb simulator in my project?

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

Re: Add contact

first, open the contact list

PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);

call
http://www.blackberry.com/developers/docs/6.0.0api/javax/microedition/pim/ContactList.html#createCon...

set fields as you like and save the contact using commit
----------------------------------------------------------
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