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

Posts: 203
Registered: ‎07-30-2009
My Device: Bold(9780),Curve(8520)
My Carrier: Vodafone
Accepted Solution

Integrate native contact app to choose a contact??



I want to Integrate native contact and call log to my application is it possible to open it and get some data like number,email ID,address.


Thanks in advanced


Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Integrate native contact app to choose a contact??



Possibly the easiest way to do this is to get the on device Contact List, cast this to a BlackBerryContactList, and then you can use the various BlackBerry contactList methods that will allow you to ;pop up a list of Contacts to select.


As I start, I think you will find this KB article useful:



This code displays a list of contacts within the program,  you might just want to use <BlackBerryContactList>.choose(..) method to let the user choose one.


Let us know if this is not enough.

Posts: 123
Registered: ‎07-08-2011
My Device: Torch 9800, Bold 9700
My Carrier: Bell, Rogers

Re: Integrate native contact app to choose a contact??

try something like this



                     BlackBerryContactList list = (BlackBerryContactList)PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_WRITE);
                     PIMItem contact = list.choose();



                if (contact != null)
                        if (contact instanceof BlackBerryContact)

                               BlackBerryContact c = (BlackBerryContact)contact;

                                  ...... get fields we wish from the selected contact



Berobo Inc.
Police Scanner Radio / Alarm Clock lets you listen to Police scanners in your area!
Please click the Like button to thank the user that has helped you and
please mark post as solved when you have found the solution to your problem.