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
Highlighted
Developer
Posts: 29
Registered: ‎09-23-2008
My Device: 8800

How to change Home Address and Work Address?

Given a first name and last name, I am able to get a reference to the contact on the device. However, I wish to change either of the address, home or work address.

I have not been able to get a hang of it, for example, if there is a change of work address, I want to be able to change that without affecting the home address. I've tried using removeValue(field, index), but its not performing as expected.

Does anybody have an idea, I'm almost certain that these values are stored as stringArrays internally, i'm not getting the correct index.

Hope someone can help me out!

Cheers,
Nik.
BlackBerry Development Advisor
Posts: 15,300
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: How to change Home Address and Work Address?

What version of BlackBerry handheld software are you testing with?  Note that access to PIM fields has been added with additional BlackBerry handheld software releases.

 

You can use the isSupported method to verify if the field is available.  Please refer to the JavaDocs for Contact for an example.

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