I have an AsycTask performing actions like copying or moving files in an app, and I update a progress bar in a dialog frequently with publishProgress()
AsycTask
publishProgress()