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

Native Development

Reply
New Contributor
Posts: 6
Registered: ‎05-07-2010
My Device: 8900 Curve
My Carrier: Vodafone
Accepted Solution

Contact Api's phoneNumbers always returns 0

Hi ,

     Even though i have many phone numbers for most of the contact list

 

the return size of  contact api's phoneNumbers()  is always 0 .

 

 

BlackBerry Development Advisor
Posts: 15,083
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Contact Api's phoneNumbers always returns 0

Try to run the addressbook sample and see how it compares to the behaviour of your application.  If it still fails please provide details on the model and OS you are testing on.  If it works it'll give you something to compare your implementation to.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Contributor
Posts: 6
Registered: ‎05-07-2010
My Device: 8900 Curve
My Carrier: Vodafone

Re: Contact Api's phoneNumbers always returns 0

Thanks a lot ,

      Addressbook sample worked perfectly .

 

I was using the following code

 

  QList<bb::smileytongue:im::contacts::Contact> contactList = bb::smileytongue:im::contacts::ContactService().contacts(filters);

which didnt worked

 

using the following addressbook sample code worked

ContactService * contactService  = new ContactService(this);