On Sat, Sep 24, 2011 at 8:05 PM, Glorious Red Leader <arturothebur...@gmail.com> wrote: > This sample application will throw a "leaked IntentReceiver" error by > following these steps: > > > - Somehow aquire a Sprint Samsung Galaxy s2 Epic Touch 4g (the one > with the 4.52" screen) > - Launch application > - Press "Launch Activity Two" button > - Open menu, then open the sub menu (Food) - NOTE: You don't need to > click on an option, simply viewing the submenu is sufficient > - Press the phone's back button to close the submenu and menu > - Press the phone's back button again to return to ActivityOne - > eclipse will print the error below. > > If you simply open the menu and select a single option item (not a > submenu) then press the back button you will not see the error. > > So my question is: Where is this registered IntentReceiver coming > from, and how can I unregister it?
It presumably is coming from a modified version of Android loaded on that Samsung device, from inside the menu implementation. You cannot unregister it directly. The only thing that looks a bit odd to me in your code is your use of getApplicationContext() rather than ActivityOne.this. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en