summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/SyncAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/java/android/content/SyncAdapter.java')
-rw-r--r--core/java/android/content/SyncAdapter.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/content/SyncAdapter.java b/core/java/android/content/SyncAdapter.java
index 88dc332..af1634e 100644
--- a/core/java/android/content/SyncAdapter.java
+++ b/core/java/android/content/SyncAdapter.java
@@ -38,6 +38,12 @@ public abstract class SyncAdapter {
public void cancelSync(ISyncContext syncContext) throws RemoteException {
SyncAdapter.this.cancelSync();
}
+
+ public void initialize(Account account, String authority) throws RemoteException {
+ Bundle extras = new Bundle();
+ extras.putBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, true);
+ startSync(null, authority, account, extras);
+ }
}
Transport mTransport = new Transport();