android.content.SyncStateContentProviderHelper
Extends the schema of a ContentProvider to include the _sync_state table
and implements query/insert/update/delete to access that table using the
authority "syncstate". This can be used to store the sync state for a
set of accounts.
Summary
Public Constructors
Public Methods
Protected Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Public Constructors
Public Methods
Replaces the contents of the _sync_state table in the destination ContentProvider
with the row that matches account, if any, in the source ContentProvider.
The ContentProviders must expose the _sync_state table as URI content://syncstate/state.
Parameters
dbSrc
| the database to read from |
dbDest
| the database to write to |
account
| the account of the row that should be copied over.
|
public
boolean
matches(Uri url)
Check if the url matches content that this ContentProvider manages.
Returns
- true if this ContentProvider can handle that Uri.
public
void
onAccountsChanged(String[] accounts)
Protected Methods