08-27-2011 08:01 AM
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
Solved! Go to Solution.
08-27-2011 09:50 AM
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.
08-28-2011 06:31 PM
try something like this
BlackBerryContactList list = (BlackBerryContactList)PIM.getInstance().openPIMLi
PIMItem contact = list.choose();
if (contact != null)
if (contact instanceof BlackBerryContact)
BlackBerryContact c = (BlackBerryContact)contact;
...... get fields we wish from the selected contact