@Override public void onTransferProgress(long progressRate,long totalTransferredSoFar,long totalToTransfer,String filePath){
  int percent=(int)(100.0 * ((double)totalTransferredSoFar) / ((double)totalToTransfer));
  if (percent != mLastPercent) {
    mNotificationBuilder.setProgress(100,percent,false);
    String fileName=filePath.substring(filePath.lastIndexOf(FileUtils.PATH_SEPARATOR) + 1);
    String text=String.format(getString(R.string.uploader_upload_in_progress_content),percent,fileName);
    mNotificationBuilder.setContentText(text);
    mNotificationManager.notify(R.string.uploader_upload_in_progress_ticker,mNotificationBuilder.build());
  }
  mLastPercent=percent;
}

@ Override public void onTransferProgress ( long progressRate , long totalTransferredSoFar , long totalToTransfer , String filePath ) { int percent = ( int ) ( 100.0 * ( ( double ) totalTransferredSoFar ) / ( ( double ) totalToTransfer ) ) ; if ( percent != mLastPercent ) { mNotificationBuilder . setProgress ( 100 , percent , false ) ; String fileName = filePath . substring ( filePath . lastIndexOf ( FileUtils . PATH_SEPARATOR ) + 1 ) ; String text = String . format ( getString ( R . string . uploader_upload_in_progress_content ) , percent , fileName ) ; mNotificationBuilder . setContentText ( text ) ; mNotificationManager . notify ( R . string . uploader_upload_in_progress_ticker , mNotificationBuilder . build ( ) ) ; } mLastPercent = percent ; }
callback method to update the progress bar in the status notification
