android - Something like onStop() for Preferences / ListPreference? -


i have custom listpreference uses asynctask , processdialog. works great, until rotate phone... here 1 possibility solve problem, requires access onstop() activities have, not listpreference. wondering: there in listpreference / preference class? how detect screen rotation preference? thank much!

easiest way deal change manifest preferenceactivity subclass:

<activity android:name=".myprefs" android:configchanges="orientation|keyboardhidden"             android:label="preferences" /> 

this prevent activity being recreated when change screen orientation when osd keyboard appears.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -