Peter Taucher wrote:Spannable is an interface, not a class. I think you want to serialize objects of a class that implement this interface (like SpannableString). So is there any hint on why XStream would not work? Again -> TellTheDetails
Yeah Spannable is interface.But even SpannableString or SpannableStringBuilders are also not serializable.
XStream only works when you have the normal text like CharSequence = "abcd"
But if you perform the following operations then it will not work.
Spannable str (Assume there are some text properties in the this
string)
CharSequence chr = (CharSequence)str;
xStream.toXML(chr)
But if you do like this it will work
CharSequence chr = "Simple string"
xStream.toXML(chr)
Because it is a normal charsequence without the text formatting properties.
Do you want anymore information , let me know.