Help me find a simple example for dumes. I want to use a progress bar in Activity. I have a procedure that creates Activity and progress bar inside Activity. In this Activity is a button, that runs another outside procedure that run a loop, that makes long data processing. How I can changing the setting progress bar in Activity, from my loop in outside procedure?