How to define ContactsAccountType for a server like Exchange to allow user to edit in native contact app using syncadapters
问题 I am implementing SyncAdapter which sync data from Microsoft Exchange server to device native contact. However, exchange have some limitation on the DataKinds e.g only 3 email id allowed of each type Home, Work, Mobile etc. Similarly for other pre-defined MimeTypes. I want the native contact app to honour this while editing/creating a new contact. I have added follow meta-data to my syncadapter.xml <meta-data android:name="android.provider.CONTACTS_STRUCTURE" android:resource="@xml/contacts"/