Ever since I added Firebase Admob this error shows up at times.
Samsung S6
Nougat Operating System
Samsung S6
Nougat Operating System
java.lang.RuntimeException: Unable to pause activity {scantech.cardiagnosticpro/scantech.cardiagnosticpro.main}: java.lang.IllegalArgumentException: View=DecorView@982aff3[main] not attached to window manager
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4126)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4092)
at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4066)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4885)
at android.app.ActivityThread.-wrap21(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1637)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6682)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
Caused by: java.lang.IllegalArgumentException: View=DecorView@982aff3[main] not attached to window manager
at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:479)
at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:388)
at android.view.WindowManagerImpl.removeViewImmediate(WindowManagerImpl.java:128)
at android.app.Dialog.dismissDialog(Dialog.java:610)
at android.app.Dialog.dismiss(Dialog.java:593)
at anywheresoftware.b4a.Msgbox.dismiss(Msgbox.java:101)
at scantech.cardiagnosticpro.main.onPause(main.java:264)
at android.app.Activity.performPause(Activity.java:7133)
at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1330)
at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:4115)
... 11 more
Last edited: