views:

242

answers:

2

I am resuing ListPreference for a setting which I store in the database. I do not want it stored in the preference file.

How can I reuse ListPreference in such way that it does NOT save to SharedPreference file?

A: 

I've not done it myself, but have you looked into overriding onDialogClosed()?

mbaird
+1  A: 

Subclass it, override shouldPersist() to return false.

alex