What is the correct way to check if a PIM string array is supported?
can I use:
if (MyContactList.isSupportedField(Contact.ADDR)){...}
or would I be better to check :
if (MyContactList.isSupportedArrayElement(Contact.ADDR, Contact.ADDR_STREET))
or both?
The following is my problem code:
if (MyContactList.isSupportedField(Contact.ADDR)) {
//...
//...
String[] AaddressLines = CurrentContact.getStringArray(Contact.ADDR, 0);;
}
It doesn't matter if I comment out the "if" block it always crashes. Only fix I can see is to ignore addresses altogether, please help.