
Originally Posted by
mottsc
The Series 40 General number problem extends beyond trying to read the field from the JSR75 interface, though I am reading it with the correct field, Contact.TEL. It seems the values associated with General numbers will never be read via JSR75 unless it is first written through the JSR75 interface. If the contact is written through the JSR75 interface using TEL/ATTR_NONE then it is visible in the phonebook by the user as a General number, and it can be read back again by the JSR75 interface.
It's not that it just can't be read, it doesn't exist as far as the JSR75 interface knows. Calling contact.countValues(Contact.TEL) will return a count that doesn't include any general numbers so if there is a Cell and a General you will get a return of 1, instead of 2. It's not like there are gaps in the list either. Iterating from 0 to the value count and getting each value will return all of the values in the list that aren't General. If the list looks like General, Cell, General, Home, General, then when read in JSR75 Cell will be in the 0 position and Home will be in the 1 position.