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
Post a Comment