I want stop main thread, while alertDialog is open, and wait user’s choice for continue the program (depending on the button pressed buttons (positive or negative)). When trying to stop thread after. show (); dialog is not draw; if hang listener’s onDestract onClose it works, but the code is horrible.
Share
You can’t stop “main” thread, since it’s gui thread – your alertDialog will become irresponsive. You need to use callback to perform desired operations.