AlertDialog Does Not Work After Dismiss / Cancel is called?
-
29-10-2019 - |
Question
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!
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow