android.view.WindowLeaked

tip

Close (finish) a Activity before, to ensure that the subsidiary in the above Dialog or PopupWindow have been closed (dismiss).
Is also available at OnCreateDialog (Dialog) to create, let the system to manage the dialog box

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • crash when using "save to" on M
    via GitHub by ahmedre
    ,
  • Curso Android Studio: Base de datos remotas Login
    via by Unknown author,
  • Unable to Show Progress Dialog
    via Stack Overflow by Nimmagadda Gowtham
    ,
  • How to resolve NoSuchMethodError?
    via Stack Overflow by Thrdhujcvgf
    ,
    • android.view.WindowLeaked: Activity mk.stefan.myphoto.MainActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{608b5ef V.E...... R....... 0,0-1046,358} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:368) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:299) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:319) at mk.stefan.myphoto.MainActivity.showMessageOKCancel(MainActivity.java:157) at mk.stefan.myphoto.MainActivity.myRequestPermissions(MainActivity.java:104) at mk.stefan.myphoto.MainActivity.initData(MainActivity.java:66) at mk.stefan.myphoto.MainActivity.initListeners(MainActivity.java:62) at mk.stefan.myphoto.MainActivity.initUi(MainActivity.java:55) at mk.stefan.myphoto.MainActivity.onCreate(MainActivity.java:44) at android.app.Activity.performCreate(Activity.java:6237) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)

    Users with the same issue

    Unknown visitor1 times, last one,
    bmacedo
    1 times, last one,
    bluebunnty
    12 times, last one,
    ank_07
    1 times, last one,
    Unknown visitor1 times, last one,
    89 more bugmates