07-31-2008 08:31 PM - edited 08-01-2008 09:54 AM
When I call Contact.getStringArray() requesting Contact.NAME, I receive an IndexOutOfBoundsException.
I even call isSupportedField( Contact.NAME ), and it returns true.
I get this when running on several 4.6.0 beta devices, and also on a 4.5.0 8100 device.
I am compiling for 4.3.0 to run on 4.5.0 and 4.6.0.
The same function call works when compiling for 4.2.1 and running on a 4.2.2 8300, and when compiling for 4.3.0 and running on the 4.3.0 8130-verizon simulator.
The call I make is:
String nameArray = contact.getStringArray( Contact.NAME, Contact.ATTR_NONE );
This is the stack trace I get:
Time: Jul 26, 2008 17:19:07
No detail message
Is this a known problem, or am I just doing something wrong?
08-01-2008 09:55 AM
08-01-2008 10:01 AM
08-01-2008 10:23 AM - edited 08-01-2008 10:24 AM
That is most likely it. I didn't call countValues() before I requested the array. Apparently there were some contacts with just a company name. In 4.2.2 it returns an empty array, but 4.5.0/4.6.0 throws an exception.