Code example for Parcel

Methods: writeStringArray

0
            super(superState);
        } 
 
        @Override 
        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);
    }