It's probably a device-specific bug, given the rest of your testing. On Mon, Sep 26, 2011 at 7:17 PM, Glorious Red Leader <[email protected]> wrote: > Thanks for the reply, I thought you were on to something but the error > still occurs when I use: > > > Intent intent = new Intent(ActivityOne.this, ActivityTwo.class); > > Or > > button.setOnclickListener(this); > > > @Override > public void onClick(View v) { > Intent intent = new Intent(this, ActivityTwo.class); > startActivity(intent); > } > > > I also tried creating the menu and submenu programatically - still > getting the error. > > On Mon, Sep 26, 2011 at 1:48 PM, Mark Murphy <[email protected]> wrote: >> On Sat, Sep 24, 2011 at 8:05 PM, Glorious Red Leader >> <[email protected]> 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 [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 > > -- > 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 >
-- 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 [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

