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
KushBB
Posts: 374
Registered: ‎04-07-2010
My Device: Bold 9000
My Carrier: Airtel
Accepted Solution

Retrieving Names From Phone Contacts using person's number

Hello Every One!!

 

I am working on a SMS application.

 

My Problem is....

 

I want to replace the number (in My Application's Inbox ,Outbox) by the name if that contact exists in my blackberry's contact list...

Like if i get a text from 909037372 and if i have a contact named "Mike" saved in my phone's native contact list with this number. So, what i am trying to implement is that Messages from this no. in my Application's Inbox/Iutbox should be replaced with "Mike" instead of showing "909037372" as is the case in real Inboxes and OutBoxes..

Please Help!!! I Need it....

Thanks In Advance....

Press the Like button (Thumb up) on the left side to thank and
please mark the Thread as solved if its solved...
K.S
Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Retrieving Names From Phone Contacts using person's number

you can use the contactlists searchByNumber. or use a workaround, create a phonecalllog with the number and see if it has a name (the name is provided by the system framework)
----------------------------------------------------------
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
Please use plain text.
Developer
KushBB
Posts: 374
Registered: ‎04-07-2010
My Device: Bold 9000
My Carrier: Airtel

Re: Retrieving Names From Phone Contacts using person's number

Thanks Simon...

 

Sir that really helped.....

 

Thank you again.... :smileyhappy:

Press the Like button (Thumb up) on the left side to thank and
please mark the Thread as solved if its solved...
K.S
Please use plain text.