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: 42
Registered: ‎12-04-2008
My Device: Not Specified
Accepted Solution

How to update contact number?

When I tried to update my contact number with the code below:

 

contact.setString(Contact.TEL,0,contact.getAttributes(Contact.TEL,0),newNumber);

 

but the result is I get two tel indexs called "Work",one is the old and the other is new.

I want to replace the old one with the new.

 

And I use JDE 4.6.0 API. Any suggestion will be appreciated.Thanks in advance.

Highlighted
Developer
Posts: 42
Registered: ‎12-04-2008
My Device: Not Specified

Re: How to update contact number?

I get it done myself.

We need to remove the old one and then add the new one.

 Smiley Happy