Activity has leaked window
InvisiblePoint InvisiblePoint 1 1 silver badge 6 6 bronze badges. Adding this method works! WindowLeaked: Activity ccom. After 2 hours of research. It was solved by running the UI related code on the UI thread. Put the dialog in a different thread and run it on that thread independent of the current activity has leaked window.
Tried both solutions mentioned here. Why the number input is the worst input. And I resovled it with the below code activity has leaked window
the Activity. This problem arises when trying to show a Dialog after you've exited an Activity. Squilo Squilo 29 2 2 bronze badges. Check your adb logcat. Modified 1 month ago.
activity has leaked window from links is given below.