Please report issues like this to http://b.android.com. Thanks!
On Tue, Oct 16, 2012 at 10:51 AM, Gergely Juhász <jg.sv...@gmail.com> wrote: > Hi! > > I just noticed a very bad example of using dialog fragments: > > http://developer.android.com/guide/topics/ui/dialogs.html#PassingEvents > > In the code snippet NoticeDialog holds a _static_ reference to > NoticeDialogListener. This interface is implemented by an Activity. > This can cause memory leaks (leaking Activity). > The correct solution should use the Activity reference from onAttach > just like here: > http://developer.android.com/guide/components/fragments.html#EventCallbacks > > R > > -- > 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 -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.2 Available! -- 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