}\r
getContext().sendStickyBroadcast(i);\r
}\r
+ \r
+ @Override\r
+ public void onSyncCanceled() {\r
+ Log.d(TAG, "sync is being cancelled !! ************************************************");\r
+ super.onSyncCanceled();\r
+ }\r
\r
}\r
AccountUtils.setCurrentOwnCloudAccount(this, accountName);
// trigger synchronization when current account is changed
+ ContentResolver.cancelSync(null, "org.owncloud");
Bundle bundle = new Bundle();
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
ContentResolver.requestSync(AccountUtils.getCurrentOwnCloudAccount(this), "org.owncloud", bundle);