private void sendBroadcastDownloadFinished(DownloadFileOperation download,RemoteOperationResult downloadResult,String unlinkedFromRemotePath){
  Intent end=new Intent(getDownloadFinishMessage());
  end.putExtra(EXTRA_DOWNLOAD_RESULT,downloadResult.isSuccess());
  end.putExtra(ACCOUNT_NAME,download.getAccount().name);
  end.putExtra(EXTRA_REMOTE_PATH,download.getRemotePath());
  end.putExtra(EXTRA_FILE_PATH,download.getSavePath());
  if (unlinkedFromRemotePath != null) {
    end.putExtra(EXTRA_LINKED_TO_PATH,unlinkedFromRemotePath);
  }
  sendStickyBroadcast(end);
}

private void sendBroadcastDownloadFinished ( DownloadFileOperation download , RemoteOperationResult downloadResult , String unlinkedFromRemotePath ) { Intent end = new Intent ( getDownloadFinishMessage ( ) ) ; end . putExtra ( EXTRA_DOWNLOAD_RESULT , downloadResult . isSuccess ( ) ) ; end . putExtra ( ACCOUNT_NAME , download . getAccount ( ) . name ) ; end . putExtra ( EXTRA_REMOTE_PATH , download . getRemotePath ( ) ) ; end . putExtra ( EXTRA_FILE_PATH , download . getSavePath ( ) ) ; if ( unlinkedFromRemotePath != null ) { end . putExtra ( EXTRA_LINKED_TO_PATH , unlinkedFromRemotePath ) ; } sendStickyBroadcast ( end ) ; }
sends a broadcast when a download finishes in order to the interested activities can update their view
