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

Posts: 777
Registered: ‎07-21-2012
My Device: 9810
My Carrier: 0

how to display phone number from contact list.



I want to show phone number from contact list i saw adress book example and debug it . i am not able to print ohone number. please help me

m_firstName = contact.firstName();
m_lastName = contact.lastName();
qDebug()<< "******************************"<< m_firstName;
qDebug()<< "******************************"<<contact.photos().size();

****************************Here is wrong something
qDebug()<< "******************************"<<contact.phoneNumbers();

Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to display phone number from contact list.

maybe qDebug cannot correctly print QList<ContactAttribute>
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Contributor
Posts: 6
Registered: ‎05-07-2010
My Device: 8900 Curve
My Carrier: Vodafone

Re: how to display phone number from contact list.

M struggling in extracting the phone number from the contact ,

can u plz tell me whether it worked for you or did u use any other approach?