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
Mahakjain2812
Posts: 6
Registered: ‎07-24-2012
My Device: 8300
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
kamal_nigam
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10

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
nunodonato
Posts: 313
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha

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
theBBthing.wordpress.com - my BlackBerry development blog: news, tips and tutorials
bitoutsidethebox.com - re-imagining digital solutions