I am re-using ListPreference for a setti开发者_如何学编程ng which I store only in the database. How can I prevent it from storing/persisting any data to the preference file?
Subclass it, override shouldPersist()
to return false.
I've not done it myself, but have you looked into overriding onDialogClosed()
?
精彩评论