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
prabhu_mp_99
Posts: 93
Registered: ‎08-17-2009
My Device: Not Specified

How to show phone numbers list before executing SMS?

Hello,

 

I have an application which allows user to choose a name(which picked from Contacts) and send SMS. I want to implement that to show user which number(if he has mobile, work or home in particular contact) before sending the SMS as same like native contact SMS does.

How can i do this? Could someone give me clues this?

 

Thank you.

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

Re: How to show phone numbers list before executing SMS?

if you have a contact you can extract the numbers and present them to the user.

----------------------------------------------------------
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
Developer
prabhu_mp_99
Posts: 93
Registered: ‎08-17-2009
My Device: Not Specified

Re: How to show phone numbers list before executing SMS?

I have a selected contact detail, how do i present as same as native SMS send option shows? Is it any specific Dialog has phone number buttons or something?

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

Re: How to show phone numbers list before executing SMS?

i have written the dialog myself, using the Dialog class

----------------------------------------------------------
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
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to show phone numbers list before executing SMS?

You have to invent this. We iterate though the available numbers and descriptions, then allow the user to pick one of the contact numbers.