AlertDialog Does Not Work After Dismiss / Cancel is called?
-
29-10-2019 - |
문제
I have an AlertDialog with 3 radio buttons.The alert is shown when a button is clicked.
I call dialog.dismiss();
when a radio button is selected by the user in the AlertDialog. Here "dialog" is from
public void onClick(DialogInterface dialog, int item) {
Now the issue is that I cannot seem to pop up the Alert again after an item has been selected. Suprisingly, on a screen rotation everything seems to work fine again!
I also get the same results (i.e it does not work) when I replace dialog.dismiss();
with dialog.cancel();
Please advice!
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow