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

Web and WebWorks Development

Reply
New Contributor
Posts: 6
Registered: ‎07-24-2012
My Device: 8300
My Carrier: Reliance
Accepted Solution

How to access Contact list in BlackBerry

I want to make a native app which needs to access contact list.how can i do it

Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: How to access Contact list in BlackBerry

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

 


Above code will give you contact entire list.

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Developer
Posts: 314
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: How to access Contact list in BlackBerry

Check the PIM API docs https://developer.blackberry.com/html5/apis/blackberry.pim.contact.html

You can see examples how to retrieve data from a contact, edit, search or add new ones.

 

cheers

Nuno