Join now - be part of our community!

Contacts App - CONTACTS_STRUCTURE - Correctly manage names fields

MDCS_DEV
Visitor

Contacts App - CONTACTS_STRUCTURE - Correctly manage names fields

Hello,

I develop an android application which declare a contact sync adapter.

My CONTACTS_STRUCTURE file is defined like this :

<?xml version="1.0" encoding="utf-8"?>
<ContactsAccountType
    xmlns:android="http://schemas.android.com/apk/res/android"
    >
    <EditSchema>
        <DataKind kind="name"
                  maxOccurs="1"
                  supportsDisplayName="true"
                  supportsPrefix="true"
                  supportsMiddleName="true"
                  supportsSuffix="true"
                  supportsPhoneticFamilyName="true"
                  supportsPhoneticMiddleName="true"
                  supportsPhoneticGivenName="true"
            >
        </DataKind>
        <DataKind kind="nickname" maxOccurs="1" />
        <DataKind kind="photo" maxOccurs="1" />
        <DataKind kind="phone" >
            <Type type="mobile" />
            <Type type="home" />
            <Type type="work" />
            <Type type="fax_work" />
            <Type type="fax_home" />
            <Type type="pager" />
            <Type type="other" />
            <Type type="custom"/>
            <Type type="callback" />
            <Type type="car" />
            <Type type="company_main" />
            <Type type="isdn" />
            <Type type="main" />
            <Type type="other_fax" />
            <Type type="radio" />
            <Type type="telex" />
            <Type type="tty_tdd" />
            <Type type="work_mobile"/>
            <Type type="work_pager" />
            <Type type="assistant" />
            <Type type="mms" />
        </DataKind>
        <DataKind kind="email" >
            <Type type="home" />
            <Type type="work" />
            <Type type="other" />
            <Type type="mobile" />
            <Type type="custom" />
        </DataKind>
        <DataKind kind="postal" needsStructured="true">
            <Type type="home" />
            <Type type="work" />
            <Type type="other" />
            <Type type="custom" />
        </DataKind>
        <DataKind kind="im" >
            <Type type="aim" />
            <Type type="msn" />
            <Type type="yahoo" />
            <Type type="skype" />
            <Type type="qq" />
            <Type type="google_talk" />
            <Type type="icq" />
            <Type type="jabber" />
            <Type type="custom" />
        </DataKind>
        <DataKind kind="organization" maxOccurs="1" />
        <DataKind kind="website" />
        <DataKind kind="sip_address" maxOccurs="1" />
        <DataKind kind="note" maxOccurs="1" />
        <DataKind kind="event" dateWithTime="false">
            <Type type="birthday" maxOccurs="1" yearOptional="false" />
            <Type type="anniversary" yearOptional="true" />
            <Type type="other" yearOptional="true" />
            <Type type="custom" yearOptional="true" />
        </DataKind>
        <DataKind kind="relationship" >
            <Type type="assistant" />
            <Type type="brother" />
            <Type type="child" />
            <Type type="domestic_partner" />
            <Type type="father" />
            <Type type="friend" />
            <Type type="manager" />
            <Type type="mother" />
            <Type type="parent" />
            <Type type="partner" />
            <Type type="referred_by" />
            <Type type="relative" />
            <Type type="sister" />
            <Type type="spouse" />
            <Type type="custom" />
        </DataKind>
    </EditSchema>
</ContactsAccountType>

When I run my application on a sony device, I have a strange behavior when adding a contact in my account :

In the name fields category, I see a field named "Name" :

Screenshot_20170419-183240.jpg

When I enter text in the "Name" field and save my contact (and I think users will do the same), I am redirected to the contacts list and my contact is not added.

I think the "Name" field corresponds to this declaration :

supportsDisplayName="true"

It seems to be the same problem with Yahoo and CardDav Sync Free accounts.

No problem with another manufacturer.

Can you please check your contact application or give me a solution without compromise those fields on other devices ?

Moreover, I suggest you to put LastName and FirstName fields instead of phonetics fields when folding up names category :

sony.jpg

Device :

Sony Xpéria Z4 (SGP771)

Android Version :

6.0

Kernel version :

3.10.84-perf-g19d6d92

BuildUser@BuildHost #1

Mon Jan 25 22:47:42 2016

Buid version :

32.1.A.1.185

com.sonyericsson.android.socialphonebook package version :

19.1.A.1.0

Thanks

0 REPLIES 0