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

Regular Contributor
Posts: 78
Registered: ‎04-05-2010
My Device: Storm

Contact list in array

Dear friends,


I am able to fetch Contact list by:


final PIM pim = PIM.getInstance();
BlackBerryContactList contactList = null;
contactList = (BlackBerryContactList) pim.openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);


Can anyone please guide me how to save the name and phone number in array.


Thanking you in anticipation.

BlackBerry Development Advisor
Posts: 15,882
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Contact list in array

This sample should help you out.


Access Address Book contacts


Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.