com.afollestad.materialdialogs.MaterialDialog$DialogException

Bad window token, you cannot show a dialog before an Activity is created or after it's hidden.

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web20

  • via GitHub by ryder203
    ,
  • Stack trace

    • com.afollestad.materialdialogs.MaterialDialog$DialogException: Bad window token, you cannot show a dialog before an Activity is created or after it's hidden. at com.afollestad.materialdialogs.MaterialDialog.show(Unknown Source) at com.afollestad.materialdialogs.MaterialDialog$Builder.show(Unknown Source) at jahirfiquitiva.iconshowcase.fragments.WallpapersFragment.showApplyWallpaperDialog(Unknown Source) at jahirfiquitiva.iconshowcase.fragments.WallpapersFragment.access$000(Unknown Source) at jahirfiquitiva.iconshowcase.fragments.WallpapersFragment$1$1.onClick(Unknown Source) at jahirfiquitiva.iconshowcase.adapters.WallpapersAdapter$WallsHolder.onClick(Unknown Source) at android.view.View.performClick(View.java:5280) at android.view.View$PerformClick.run(View.java:21239) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:234) at android.app.ActivityThread.main(ActivityThread.java:5526) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

    Write tip

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

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,