android-contact-mimetype

How to define ContactsAccountType for a server like Exchange to allow user to edit in native contact app using syncadapters

微笑、不失礼 提交于 2020-01-16 08:59:14
问题 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"/

How to add whatsapp like options to contact whenever the is a new contact added to Contacts

北战南征 提交于 2019-11-27 09:07:59
I develop an app which needs to do 2 things: Create a user account (like WhatsApp). Whenever there is a new contact entry, if the contact is using my app, then immediately in the Contacts application show options "call" or "message" in the contact detail page. Example You need to create a SyncAdapter , this is basically a service that is able to sync contacts to/from a server, like Google does for Google Contacts , you can set it to be notified when a new contact is added, and have your SyncAdapter add the needed info to the contact so it'll show links to your app. If you go to your phone

How to add whatsapp like options to contact whenever the is a new contact added to Contacts

心已入冬 提交于 2019-11-26 14:31:50
问题 I develop an app which needs to do 2 things: Create a user account (like WhatsApp). Whenever there is a new contact entry, if the contact is using my app, then immediately in the Contacts application show options "call" or "message" in the contact detail page. Example 回答1: You need to create a SyncAdapter , this is basically a service that is able to sync contacts to/from a server, like Google does for Google Contacts , you can set it to be notified when a new contact is added, and have your