Code example for Parcel

Methods: writeStringArray

        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeStringArray(values.toArray(new String[values.size()]));
    private CharSequence[] mEntries;
    private CharSequence[] mEntryValues;
    private Set<String> mNewValues = new HashSet<String>();
    private boolean mPreferenceChanged;
    private Set<String> mValues = new HashSet<String>();
    public MultiSelectListPreference(Context context) {
        this(context, null);
Connect your IDE to all the code out there  Get Codota for Java