Android Question Exception java.lang.IllegalArgumentException: View not attached to window manager

Douglas Farias

Expert
Licensed User
Longtime User
Hi all.
i m using progressdialogshow2 on the app start, on activity create later loadlayout.
its a simple dialog
B4X:
Activity.LoadLayout("1")
    ProgressDialogShow2("Loading Settings...",False)

later with a timer i close this
B4X:
Sub tcarrega_Tick
    tcarrega.Enabled = False
    ProgressDialogHide
End Sub

And i see a lot of errors like this on Firebase Console.





I found the error on stackoverflow
http://stackoverflow.com/questions/...exception-view-not-attached-to-window-manager


What can cause this error? and what can i make to fix this? i see on stackoverflow the method
isShowing maybe this help to hide the progress but it dont exist here.

what can i make to fix this? thx