09-04-2008 03:07 PM
Hi all,
I have a problem of a contact's fields displaying a word "null" instead of not showing it when using addStringArray().
The sample code is below:
=====
BlackBerryContact contact = (BlackBerryContact) contactList.createContact();
String[] name = new String[5];
name[BlackBerryContact.NAME_GIVEN] = "test";
//PREFIX and FAMILY fields are left as "null"
contact.addStringArray(BlackBerryContact.NAME, BlackBerryContact.ATTR_NONE, name);
=====
In the address book application, instead of displaying only "test", it now shows "null test null".
The Addresses (Work / Home) also suffer this similar problem.
I'm testing on the Simulator 4.5.0, 8330 model.
Please let me know what I need to do to fix this problem.
Thanks,
--Thang Dao
09-05-2008 11:25 AM