Friday, July 26, 2013

Android ListPreference not persisting

Issue

Android ListPreference created dynamically is not persisting although "setPersistent()" is set to true


Solution

For my case: i forgot to set a key for the ListPreference in the code


listPrefObj.setKey("list_pref_key");

No comments:

Post a Comment