protected FileDownloaderBinder mDownloaderBinder = null;
protected FileUploaderBinder mUploaderBinder = null;
private ServiceConnection mDownloadServiceConnection, mUploadServiceConnection = null;
protected FileDownloaderBinder mDownloaderBinder = null;
protected FileUploaderBinder mUploaderBinder = null;
private ServiceConnection mDownloadServiceConnection, mUploadServiceConnection = null;
onSynchronizeFileOperationFinish((SynchronizeFileOperation) operation, result);
} else if (operation instanceof GetSharesForFileOperation) {
onSynchronizeFileOperationFinish((SynchronizeFileOperation) operation, result);
} else if (operation instanceof GetSharesForFileOperation) {
Toast t = Toast.makeText(this,
ErrorMessageAdapter.getErrorCauseMessage(result, operation, getResources()),
Toast.LENGTH_LONG);
Toast t = Toast.makeText(this,
ErrorMessageAdapter.getErrorCauseMessage(result, operation, getResources()),
Toast.LENGTH_LONG);
if (result.getCode() == ResultCode.SHARE_FORBIDDEN) {
String password = operation.getPassword();
if ((password == null || password.length() == 0) &&
if (result.getCode() == ResultCode.SHARE_FORBIDDEN) {
String password = operation.getPassword();
if ((password == null || password.length() == 0) &&
{
// Was tried without password, but not sure that it's optional. Try with password.
// Try with password before giving up.
{
// Was tried without password, but not sure that it's optional. Try with password.
// Try with password before giving up.