Skip to content Skip to sidebar Skip to footer

Activity Has Leaked Window That Was Originally Added Logcat Error

Please solve my error.I am unable to figure out. When I click on submit button,my app crashes.Why?Let me know if you want any more input from my side. MainActivity.java public clas

Solution 1:

  1. Before showing dialog

    if(dialog != null && dialog.isShowing()) { dialog.dismiss();//or cancel() }

  2. Try moving the dialog and its initialization from asyncthread

    HomeScreen has leaked window DecorView@d93e50e[Saving data] that was originally added here answer to this error

Post a Comment for "Activity Has Leaked Window That Was Originally Added Logcat Error"