I have a download in progress and I show a progressdialogshow window until the download finishes. Now if a user presses the physical back button, I want to cancel the asynchronous download by closing the outputstream.
But the issue is when a progressdialogshow is happening, the keypresses are not trapped inside Activity_KeyPress event. Instead when the user clicks the back button, the progressdialogshow window disappears but the actual process is still continuing.
Where can I trap the keypress when there is a progressdialogshow in progress?
But the issue is when a progressdialogshow is happening, the keypresses are not trapped inside Activity_KeyPress event. Instead when the user clicks the back button, the progressdialogshow window disappears but the actual process is still continuing.
Where can I trap the keypress when there is a progressdialogshow in progress?