I am currently using Java ME to extract Addressbook (ContactList) fields in a device via PIM (JSR75 Spec). I am having problems on getting the value's maximum length of a field if the field's datatype is a String. I initially thought there's a method in the API that is like getFieldLength(int fieldId)
but unfortunately found none.
Is there a way I can get this?
I need to know the field's data length because I only read the field definition itself. Not the values. I need to collect all the supported fields in a device. From the those fields, I need to get the field's name, data type and maximum length. We are putting the said infos to our server application for device porting purposes.