Ok. I wanted to destroy them before orientation changes. As I create them from textview, what is the best way to dismiss them without leaking. The view does n't know the orientation change, if I'm not wrong.
On Oct 1, 2009, at 11:28 PM, Romain Guy <romain...@google.com> wrote: > > If you create the popup windows you are responsible for managing them > on orientation change. That bug is yours :) > > On Thu, Oct 1, 2009 at 9:20 PM, Vijay <vijay.meenakshisunda...@gmail.com > > wrote: >> >> Is the 'Activity leaked window' issue (http://code.google.com/p/ >> beepmystuff/issues/detail?id=3) fixed in any of the latest Android >> releases? I'm not sure about the Android version I'm using. I get >> this >> error during orientation changes. >> >> I create PopupWindows inside TextView. When I change orientation when >> the popupwindow is shown, my log says Activity has leaked a window >> (popupwindow) and then sometimes the application crashes, but not >> always. >> >> When the application crashes, the log says 'Uncaught handler: thread >> main exiting due to uncaught exception >> java.lang.IllegalArgumentException: View not attached to window >> manager' >> >> >> Thanks for your comments. >>> >> > > > > -- > Romain Guy > Android framework engineer > romain...@android.com > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---