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

Java Development

Reply
Developer
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100

select specific num from Contact !!

[ Edited ]

hi all,

 

in my app, i want to select any num from addressbook...now what i m doing, i m opening an addressbook using function

 

BlackBerryContactList.choose(null, BlackBerryContac.TEL, true) .

 

now i hv an addressbook with me.now how to select particular num from specific contact? any idea? is thr any method?

 

 

Message Edited by 02cp682 on 09-24-2008 04:01 PM
Jeet Bhatt, India
BlackBerry Development Advisor
Posts: 15,302
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: select specific num from Contact !!

Have a look at this example that demonstrates reading all fields from a contact.

 

How To - Access Address Book contacts
Article Number: DB-00147

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800363/How_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
Developer
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100

Re: select specific num from Contact !!

but first i want to display addressbook to use and then want to let him to select a particular contact from it
Jeet Bhatt, India
Developer
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100

Re: select specific num from Contact !!

i successfuly displayed addressbook to user using 

 

BlackBerryContact contact = (BlackBerryContact) contactList.choose(null, BlackBerryContactList.SEARCH_CONTACTS, false);

now,

 

how can user select speciffic contact from it....i mean how can i get the selected contact in contact object in the code 

 

 

Jeet Bhatt, India
Developer
Posts: 16,842
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: select specific num from Contact !!

in the code snipped you posted you have the contact as the result of your assignment.

(why doublepost?)
----------------------------------------------------------
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