Re: [android-developers] Leaking Window on orientation change

2012-06-28 Thread InvisiblePoint
I was getting these logs in my video player application. These messages were thrown while the video player was closed. Interestingly, I used to get these logs once in a few runs in a random manner. Also my application does not involve in any progress dialog or Async Task. Finally, I got around

Re: [android-developers] Leaking Window on orientation change

2012-06-18 Thread Vance Turnewitsch
Thanks. I tried using the method and it appears that the method gets called after the Activity has been destroyed and during some process of recreating the Activity: 06-18 06:26:32.639: E/WindowManager(1767): Activity com.betweenthehills.TestVideoPlayerActivity has leaked window

Re: [android-developers] Leaking Window on orientation change

2012-06-18 Thread TreKing
On Mon, Jun 18, 2012 at 5:29 AM, Vance Turnewitsch betweenthehi...@gmail.com wrote: Thanks. I tried using the method and it appears that the method gets called after the Activity has been destroyed and during some process of recreating the Activity: What does your onClick method look like?

Re: [android-developers] Leaking Window on orientation change

2012-06-17 Thread Vance Turnewitsch
The this is an Activity. The project I am writing the component for is rather large and takes almost four minutes to build; so I am creating my component in small Android app. Then when the component works, I will transfer my code into the large project. I can work with the on* methods now,

Re: [android-developers] Leaking Window on orientation change

2012-06-17 Thread TreKing
On Sun, Jun 17, 2012 at 5:23 PM, Vance Turnewitsch betweenthehi...@gmail.com wrote: The this is an Activity. The project I am writing the component for is rather large and takes almost four minutes to build; so I am creating my component in small Android app. Then when the component works, I

Re: [android-developers] Leaking Window on orientation change

2012-06-17 Thread Vance Turnewitsch
I know this situation is strange, but I am being honest. I saw the Romain guy post that suggestion somewhere before, and I have tried using that method. I haven't had success with it; so should override that method for the Dialog or the view in my dialog? Vance On Sunday, June 17, 2012

Re: [android-developers] Leaking Window on orientation change

2012-06-17 Thread TreKing
On Sun, Jun 17, 2012 at 9:05 PM, Vance Turnewitsch betweenthehi...@gmail.com wrote: so should override that method for the Dialog or the view in my dialog? I think it would be the View that owns the dialog. In this case maybe your FrameLayout? Or the resizeVidView?

Re: [android-developers] Leaking Window on orientation change

2012-06-16 Thread Vance Turnewitsch
I am writing a separate component for an Android framework, and I can't modify the activity that will use my component. Vance On Friday, June 15, 2012 11:23:43 PM UTC-4, TreKing wrote: On Fri, Jun 15, 2012 at 7:54 PM, Vance Turnewitsch wrote: I cannot access the on* methods of the activity

Re: [android-developers] Leaking Window on orientation change

2012-06-16 Thread TreKing
.On Sat, Jun 16, 2012 at 11:06 PM, Vance Turnewitsch betweenthehi...@gmail.com wrote: I am writing a separate component for an Android framework, and I can't modify the activity that will use my component. Your code shows d.setOwnerActivity(this). So what is this if not an Activity?

Re: [android-developers] Leaking Window on orientation change

2012-06-15 Thread TreKing
On Fri, Jun 15, 2012 at 7:54 PM, Vance Turnewitsch betweenthehi...@gmail.com wrote: I cannot access the on* methods of the activity to properly dismiss this Dialog. Why not ... ? - TreKing