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 Developer
Posts: 13
Registered: ‎01-05-2012
My Device: Bold 2
My Carrier: GLO

How to Launch The Address Book

I am working on an sms application and i want the user to be able to select a contact to send sms by launching the BB Address Book or by entering the number.

Highlighted
Developer
Posts: 1,055
Registered: ‎01-25-2009
My Device: BlackBerry Bold 9650/BlackBerry Torch 9800

Re: How to Launch The Address Book

Check out the following link:

 

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.pim.Contact.html

 

You should be able to call the following:

 

var contacts = blackberry.pim.Contact.find();

 contacts should be an array containing every contact in the user's address book. You can then loop through each of those and print out a list for the user to select. Once selected, read the properties you need from the array.

 

Here are all of the properties available for each Contact object in that array:

 

https://bdsc.webapps.blackberry.com/html5/apis/blackberry.pim.Contact.html#anniversary

Jerome Carty - Follow jcarty on Twitter@jcarty | #webworks-dev / #BlackberryDev on irc.freenode.net | My Apps
Click "Accept as Solution" if post solved your original issue.. Give like/thumbs up if you feel post is helpful