开发者

Adding or reading some of the contact fields in symbian using j2me

开发者 https://www.devze.com 2022-12-27 18:08 出处:网络
I want to add or read the fields of contact like i am getting the telephone home no ContactList clist;

I want to add or read the fields of contact like i am getting the telephone home no

ContactList clist;

Contact con;

String no;

if(cList.isSupportedAttribute(Contact.TEL, Contact.ATTR_HOME)) {

    con.addString(Contact.TEL, Contact.ATTR_HOME, no);

}

and mobile no

if(cList.isSupportedAttribute(Contact.TEL, Contact.ATTR_MOBILE)) {

    con.addString(Contact.TEL, Contact.ATTR_MOBILE, mb)开发者_C百科;

}

now i want to get the fields internet telephone, push to talk, mobile(home), mobile(business), dtmf, shareview, sip, children, spouse and some more fields

please help me..

Thanks in advance


The list of standard contact field and attributes you can use can be found at Forum Nokia (since you're using a Symbian phone).

The JSR-75 specification doesn't really prevent handset manufacturers from adding more fields and attributes but you may need to write code to discover what is possible with your handset.

I would suggest filling a contact with as much information as you can using the handset embedded native Contact application first.

The useful methods for field and attribute discovery are:
PIMList.getArrayElementLabel()
PIMList.getAttributeLabel()
PIMList.getFieldLabel()
PIMList.getSupportedArrayElements()
PIMList.getSupportedAttributes()
PIMList.getArrayElementLabel()
PIMList.getArrayElementLabel()
PIMList.getSupportedFields()

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号