Checking for other AlertDialogs in an Activity?
-
29-09-2019 - |
Question
How do I check whether there are any AlertDialog
s on the screen programmatically?
Solution 2
AFAIK, This can't be done in Android.
OTHER TIPS
You could use myAlertDialog.isShowing();
to get a boolean of if it is showing and then do something with that information. Not exactly what you were looking for but maybe a long, convoluted work around...?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow