10-26-2012 09:34 AM
Hi All,
I want to implement the Address book API. For which I can get/retrieve the data(e.g. Phone Number,Email Address etc) to my project Application.
Is it possible to invoke the Address Book to retrieve data??
I go through this link but it didn't help me https://developer.blackberry.com/html5/apis/blackb
I have search it many times but can't get such code to make it possible.
Please help me if anyone know the solution or having any sample code.
Thanks & Regards,
Himansu
Solved! Go to Solution.
10-30-2012 03:03 AM
Its seems quite surprise that no members of this forum suggested even a single code related to the above problem...
However I search some more and find the alternate solution.
var contactResult = new Array();
var Fname = new blackberry.find.FilterExpression("firstName", "!=", "");
contactResult = blackberry.pim.Contact.find(Fname);
for ( var i = 0; i < contactResult.length; i++) {
var totalName = contactResult[i].title+ " "+ contactResult[i].firstName+ " "+ contactResult[i].lastName;
}This will retrieve the all data or contacts from the Address book. For which I have to make a custom address book.