Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Unable to pause activity Receiver not registered

What is the cause of this error:

 java.lang.RuntimeException: Unable to pause activity { 
com.test/com.test.activities.MyActivity}: java.lang.IllegalArgumentException: 
        Receiver not registered: android.widget.VideoView$EventReceiver@98976  at android.app.ActivityThread.performPauseActivity(ActivityThread.java:2354)  at
        android.app.ActivityThread.performPauseActivity(ActivityThread.java:2311)  at
        android.app.ActivityThread.handlePauseActivity(ActivityThread.java:2291)  at
        android.app.ActivityThread.access$1700(ActivityThread.java:117)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:942)  at 
        android.os.Handler.dispatchMessage(Handler.java:99)  at 
        android.os.Looper.loop(Looper.java:130)  at
        android.app.ActivityThread.main(ActivityThread.java:3683)  at 
        java.lang.reflect.Method.invokeNative(Native Method)  at
        java.lang.reflect.Method.invoke(Method.java:507)  at 
        com.android.internal.os.ZygoteInit$MethodAndArg…
like image 314
Code Droid Avatar asked Nov 14 '22 04:11

Code Droid


1 Answers

Is your activity connecting to a service? If so, check that you are not unbinding from the service twice.

I had a similar problem where my activity needed to bind and unbind as it was started / paused. Called unbind too many times when pausing and that error was thrown.

Hope this helps

like image 109
MancyD Avatar answered Nov 16 '22 03:11

MancyD