views:

48

answers:

1

I am trying to create a preference dialog window that allows the user to select more then one item in the list. Currently it only allows you to select one item. Is there an easy way to do this? I have looked all over the internet and not seen a way as of yet. Any help is appreciated!

A: 

Preferences are single values by definition. If you want to implement a multiple choice ListPreference you might have to subclass this class or android.preference.Preference and create your own implementation.

Alternatively you can call an activity from a simple preference screen and handle everything yourself.

You can store the values in a String preference with a separator or better yet, as various boolean preferences.

hgpc