I cannot find a method ".cancel()" for the class PreferenceScreen.
Could it be something else?

thanks,
Jim




On May 13, 7:28 am, scuellar <scuellar...@gmail.com> wrote:
> This is the solution for you problem:
>
> When you change the screen orientation, the activity is destroy and
> then re-created again, so you have to do the following:
>
> 1) Get a reference to thepreferencescreen
> 2) Override onDestroy method in your activity
> 3) In you onDestroy method, call first super.onDestroy and then call
> preferenceScreen.cancel()
>
> That's all
>
> PS: you'll have the same problem with Dialog, ...
>
> On Apr 14, 11:07 am, Sikus <sikusra...@gmail.com> wrote:
>
>
>
> > I try add android:configChanges="orientation" to my manifest, but
> > error still show to me. I have progressDialog and when is showing I
> > change orientation and occur eroor "04-14 10:51:36.138: ERROR/
> > WindowManager(615): Activity cz.prowide.ochodni_rejstrik.Firmy has
> >leakedwindowcom.android.internal.policy.impl.PhoneWindow
> > $decorv...@4354ae68 that was originally added here..."
> > Could anyone help me how fix it? Thanks
>
> > On 18 Ún, 17:34, Chander Pechetty <cspeche...@gmail.com> wrote:
>
> > >         Are you getting this exception after you add
> > > "android:configChanges="orientation"  to your manifest file :
>
> > > <activity android:name=".ShowSettings"
> > > android:configChanges="orientation">
>
> > > On Feb 18, 2:15 pm, AusR <austinjr...@gmail.com> wrote:
>
> > > > Hi, can anyone shed any further light on this? Please? And Thank you!- 
> > > > Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to