@Override public void onDownloadProgress(DownloadProgressInfo progress){
  mAverageSpeed.setText(getString(R.string.kilobytes_per_second,Helpers.getSpeedString(progress.mCurrentSpeed)));
  mTimeRemaining.setText(getString(R.string.time_remaining,Helpers.getTimeRemaining(progress.mTimeRemaining)));
  progress.mOverallTotal=progress.mOverallTotal;
  mPB.setMax((int)(progress.mOverallTotal >> 8));
  mPB.setProgress((int)(progress.mOverallProgress >> 8));
  mProgressPercent.setText(Long.toString(progress.mOverallProgress * 100 / progress.mOverallTotal) + "%");
  mProgressFraction.setText(Helpers.getDownloadProgressString(progress.mOverallProgress,progress.mOverallTotal));
}

@ Override public void onDownloadProgress ( DownloadProgressInfo progress ) { mAverageSpeed . setText ( getString ( R . string . kilobytes_per_second , Helpers . getSpeedString ( progress . mCurrentSpeed ) ) ) ; mTimeRemaining . setText ( getString ( R . string . time_remaining , Helpers . getTimeRemaining ( progress . mTimeRemaining ) ) ) ; progress . mOverallTotal = progress . mOverallTotal ; mPB . setMax ( ( int ) ( progress . mOverallTotal > > 8 ) ) ; mPB . setProgress ( ( int ) ( progress . mOverallProgress > > 8 ) ) ; mProgressPercent . setText ( Long . toString ( progress . mOverallProgress * 100 / progress . mOverallTotal ) + "%" ) ; mProgressFraction . setText ( Helpers . getDownloadProgressString ( progress . mOverallProgress , progress . mOverallTotal ) ) ; }
sets the state of the various controls based on the progressinfo object sent from the downloader service .
