This implementation is capable of displaying itself automatically on initialization and to hide again if the progress counter reaches the maximum or if the view is reset. But even if automatic activation is enabled the application should correctly dispose the progress view after the monitored processing cycle has been completed to prevent the progress view from staying on the display (e.g. if lesser steps have been processed than expected). This should be done by invoking the method reset()
in a try-finally block that surrounds the processing code to make sure that the previous screen is restored in any case.
|
|
|
|