Examples of using Sync adapter in English and their translations into Russian
{-}
-
Official
-
Colloquial
Sync adapter implementation.
This class acts as a factory for the sync adapter singleton.
Sync adapter classes and files.
To use this framework, you supply a sync adapter plug-in.
However, a sync adapter is restricted to the ACCOUNT_NAME and ACCOUNT_TYPE it specified.
There are two versions of delete:as an application and as a sync adapter.
XML files that define the sync adapter and authenticator to the system.
A Service component that responds to requests from the system to bind to the sync adapter.
A sync adapter needs to provide an ACCOUNT_NAME and an ACCOUNT_TYPE as query parameters in the URI.
The following Calendars columns are writable by both an application and a sync adapter.
The< meta-data> element for the sync adapter service points to the XML file res/xml/syncadapter. xml.
The account type specified in this element must be the same as the account type specified for the sync adapter.
A sync adapter needs to specify that it's a sync adapter by setting CALLER_IS_SYNCADAPTER to true.
There are only minor differences in how an application and a sync adapter access the Calendar Provider.
This flag that tells the sync adapter that the row was deleted and that this deletion should be propagated to 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 and remove them from the server before deleting them from the provider.
These MIME types are open source, andcan be used by any application or sync adapter that works with the Contacts Provider.
This allows your sync adapter to retrieve high-resolution photos and the most recent stream items for the contact.
When the system wants to run a synchronization, it calls the service's onBind()method to get an IBinder for the sync adapter.
Each sync adapter is unique to a service and content provider, but can handle multiple account names for the same service.
However, if you're not building a full-fledged calendar application or sync adapter, requesting these permissions isn't necessary.
To implement a sync adapter for the Contacts Provider, you start by creating an Android application that contains the following.
This approach may be faster anduse less bandwidth than doing a full sync with a sync adapter.
When a sync adapter creates a new raw contact, this column should be set to the server's unique ID for the raw contact.
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< service> 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 system learns about the sync adapter from elements in your application manifest, and from a special XML file pointed to by the manifest.
Each< ContactsDataKind> child element of< ContactsAccountType>represents a type of custom data row that your sync adapter adds to the ContactsContract. Data table.