android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4fe3219 is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:782)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:378)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114)
at android.app.Dialog.show(Dialog.java:440)
at android.support.v7.app.AlertDialog$Builder.show(AlertDialog.java:958)
at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.showUpdateDialog(CretinAutoUpdateUtils.java:389)
at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.access$1200(CretinAutoUpdateUtils.java:57)
at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:296)
at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:191)
at android.os.AsyncTask.finish(AsyncTask.java:692)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:709)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:156)
at android.app.ActivityThread.main(ActivityThread.java:6577)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4fe3219 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:782) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:378) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114) at android.app.Dialog.show(Dialog.java:440) at android.support.v7.app.AlertDialog$Builder.show(AlertDialog.java:958) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.showUpdateDialog(CretinAutoUpdateUtils.java:389) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils.access$1200(CretinAutoUpdateUtils.java:57) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:296) at com.cretin.www.cretinautoupdatelibrary.utils.CretinAutoUpdateUtils$DownDataAsyncTask.onPostExecute(CretinAutoUpdateUtils.java:191) at android.os.AsyncTask.finish(AsyncTask.java:692) at android.os.AsyncTask.-wrap1(AsyncTask.java) at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:709) at android.os.Handler.dispatchMessage(Handler.java:105) at android.os.Looper.loop(Looper.java:156) at android.app.ActivityThread.main(ActivityThread.java:6577) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)