영어에서 Sync adapter 을 사용하는 예와 한국어로 번역
{-}
-
Colloquial
-
Ecclesiastic
-
Ecclesiastic
-
Programming
-
Computer
A sync adapter has write access to more columns than an application or widget.
To implement a sync adapter for the Contacts Provider, you start by creating an Android application that contains the following.
This signals the sync adapter that it should create a new raw contact on the server,
From the notifier service, you can bind to and then call your sync adapter to update the data for the raw contact.
The sync adapter can check for deleted rows
A sync adapter needs to specify that it's a sync adapter by setting CALLER_IS_SYNCADAPTER to true.
These MIME types are open source, and can be used by any application or sync adapter that works with the Contacts Provider.
When the system wants to authenticate a user account for the application's sync adapter, it calls the service's onBind()
Because most services require users to verify their identity before accessing data, the Android system offers an authentication framework that is similar to, and often used in conjunction with, the sync adapter framework.
If you are using a sync adapter with your provider, you should consider marking a deleted row with a"delete" flag rather than removing the row entirely.
You can write a sync adapter that adds stream data from your own network to these tables, or you can read
The sync adapter does not become active until the user adds an account for the sync adapter's account type and enables synchronization for the content provider the sync adapter syncs with.
If the server associated with a user account wants to maintain groups, the sync adapter for the account's account type should transfer groups data between the Contacts Provider and the server.
When users add a new contact to the server and then put this contact in a new group, the sync adapter must add the new group to the ContactsContract. Groups table.
For more details, see the section below about Sync Adapters.
For more information about sync adapters, see Sync Adapters.
The Calendar Provider API can be used by applications and sync adapters.
Neither applications nor sync adapters are allowed to add contacts,
This is described in more detail in the section Contacts Provider sync adapters.
For a discussion of how sync adapters are different, see Sync Adapters.