@Override public void onDownloadProgress(DownloadProgressInfo progress) { mAverageSpeed.setText( getString( com.godot.game.R.string.kilobytes_per_second, Helpers.getSpeedString(progress.mCurrentSpeed))); mTimeRemaining.setText( getString( com.godot.game.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)); }
private NotificationEvents() { _instance = this; lastTimeStamp = Long.toString((new Date()).getTime() / 1000); }