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
Developer
ravi1989
Posts: 777
Registered: ‎07-21-2012
My Device: 9810

how to display phone number from contact list.

Hello

 

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();

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

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
Dee_pain
Posts: 6
Registered: ‎05-07-2010
My Device: 8900 Curve

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?