Manually generated ProgressBar activity code