Hi, I am getting an exception from my application. >From the logcat, found below call flow, 1.OnPause is getting called, here we are doing unregister broadcast receiver. 2.Then OnResume is getting called, here we are registering event after 200ms in the separate task. 3.Before 200ms, OnPause is getting called and unregister done. 4.Then delayed task is getting to register broadcast event.
In fourth step, am getting below logcat Activity com.android.camera.VideoCamera has leaked IntentReceiver com.android.camera.VideoCamera$MyBroadcastReceiver@405da838 that was originally registered here. Are you missing a call to unregisterReceiver()? 05-10 09:52:57.649 E/ActivityThread( 9907): android.app.IntentReceiverLeaked: Activity com.android.camera.VideoCamera has leaked IntentReceiver com.android.camera.VideoCamera$MyBroadcastReceiver@405da838 that was originally registered here. Are you missing a call to unregisterReceiver()? After that exception generated 05-10 09:52:57.709 E/AndroidRuntime( 9907): android.view.WindowManager $BadTokenException: Unable to add window -- token null is not valid; is your activity running? 05-10 09:52:57.709 E/AndroidRuntime( 9907): at android.view.ViewRoot.setView(ViewRoot.java:528) 05-10 09:52:57.709 E/AndroidRuntime( 9907): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177) Any idea how to overcome this message and make it run?? Thanks & Regards, Pandi -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

