+
+ @Override
+ public void OnUploadProgress(long currentProgress) {
+ mSendData += currentProgress;
+ int percent = (int)(100*mSendData/mTotalDataToSend);
+ String text = String.format("%d%% Uploading %s file", percent, new File(mLocalPaths[mCurrentIndexUpload]).getName());
+ mNotification.contentView.setProgressBar(R.id.status_progress, 100, percent, false);
+ mNotification.contentView.setTextViewText(R.id.status_text, text);
+ mNotificationManager.notify(42, mNotification);
+ }