I want to be able to interrupt the progress dialog box while it is waiting for a lengthy operation to complete.
Here is what I am doing:
I have an activity which has a set of buttons at the top and a webview below.
When a user clicks on one of the buttons, it dispatches a request to load the url in the webview. A progress dialog box is displayed as the user waits for the process to complete. Now, I want the user to be able to click on another button. Doing so will cancel the current request to load the url, dismiss the progress dialog box and restart the same process but for the new url.
I don't know how I can allow the user to click anything on the screen when the progress dialog box is displayed.
Is this possible? If so, how can I implement this?