Multi select ListPreference on android

zsniperx picture zsniperx · Aug 29, 2010 · Viewed 19.4k times · Source

Any idea on implementing a multi-select (check boxes) ListPreference on Android?

Would I have to extend the ListPreference?
Is there any classes already documented to do this?

Thanks

Answer

Tim picture Tim · Feb 23, 2011

Multi select ListPreference now comes natively with Android from API level 11 (Honeycomb). http://developer.android.com/reference/android/preference/MultiSelectListPreference.html

Because it will be quite a while before devices have Honeycomb or later installed I'd recommend people to stick with the http://blog.350nice.com/wp/archives/240 solution.

EDIT: I think at this moment in time (almost 3 years after this answer was originally posted) you are better off using the native version now as the majority of devices have Android 4 and up.