ProgressDialog: How to prevent automatic dismissing of Dialog inside setButton-Listener?
问题 i have following Scenario: Im showing a ProgressDialog in the UI-Thread and on the same time doing a Networkdiscovery in a Backgroundthread. This works just fine. The Dialog has a Stop -Button, so the User can decide if he wants to stop the discovery. Now here is my Problem: To stop the discovery some heavy workload-process is also done in a Backgroundthread so the Progresswheel in the UI-Thread does not hang up. In theory the Progresswheel should continue spinning until the Backgroundthread