영어에서 Sync adapter 을 사용하는 예와 한국어로 번역
{-}
-
Colloquial
-
Ecclesiastic
-
Ecclesiastic
-
Programming
-
Computer
Use this table to store metadata for your sync adapter.
The sync adapter calls installIfNeeded() to update the security provider.
In fact, they are not visible unless they are accessed as a sync adapter.
A sync adapter has write access to more columns than an application or widget.
There are two versions of delete: as an application and as a sync adapter.
For example, here's an implementation of a sync adapter that updates the security provider.
A Service component that responds to requests from the system to bind to the sync adapter.
How to write a sync adapter for synchronizing data from your server to the Contacts Provider.
There are only minor differences in how an application and a sync adapter access the Calendar Provider.
However, a sync adapter is restricted to the ACCOUNT_NAME and ACCOUNT_TYPE it specified.
However, if you're not building a full-fledged calendar application or sync adapter, requesting these permissions isn't necessary.
A sync adapter delete removes the event from the database along with all its associated data.
In Android, the web service that a sync adapter works with is identified by an account type.
A sync adapter synchronizes the calendar data on a user's device with another server or data source.
If the method returns normally, the sync adapter knows the security provider is up-to-date.
A sync adapter needs to provide an ACCOUNT_NAME and an ACCOUNT_TYPE as query parameters in the URI.
The<meta-data> element for the sync adapter service points to the XML file res/xml/syncadapter. xml.
Each sync adapter works with one account type, but it can support multiple account names for that type.
Besides regular synchronization, you can trigger your sync adapter to retrieve additional data when the user selects a contact to view.
The sync adapter and authenticator service components described previously are defined in elements in the application manifest.
If an application needs to create a local calendar, it can do this by performing the calendar insertion as a sync adapter, using an ACCOUNT_TYPE of ACCOUNT_TYPE_LOCAL.
The element for the sync adapter service points to the XML file res/xml/syncadapter. xml.
The sync adapter and authenticator service components described previously are defined in<service> elements in the application manifest.
If the method throws an exception, the sync adapter can take appropriate action(such as prompting the user to update Google Play services).
When a sync adapter creates a new raw contact, this column should be set to the server's unique ID for the raw contact.
This flag that tells the sync adapter that the row was deleted and that this deletion should be propagated to the server.
Each sync adapter is unique to a service and content provider, but can handle multiple account names for the same service.
This signals the sync adapter that it should create a new raw contact on the server, and get a value for the SOURCE_ID.
To implement a sync adapter for the Contacts Provider, you start by creating an Android application that contains the following.
Since a sync adapter runs in the background, it's okay if the thread blocks while waiting for the security provider to be updated.