Hello,
I would like to know if it should be possible to store a CSBuilder into KeyValueStore2, please.
My need is to prepare some sequences with their colors & links and then use them to easily feed Labels later.
My trouble is that I can store them when converted to Strings (CSB.ToString) but I can't when passed as objects.
And when I store as string, of course I lost the formatting.
Thanks
I would like to know if it should be possible to store a CSBuilder into KeyValueStore2, please.
My need is to prepare some sequences with their colors & links and then use them to easily feed Labels later.
My trouble is that I can store them when converted to Strings (CSB.ToString) but I can't when passed as objects.
java.lang.RuntimeException: Cannot serialize object:
B4X:
Sub PrepareDB
Private CSB As CSBuilder
CSB.Initialize
CSB.Typeface(Typeface.MATERIALICONS)
CSB.BackgroundColor(Colors.Blue).Color(Colors.White).Append(Chr(0xE84D))
If Not(KVS.ContainsKey("csb1")) Then
KVS.Put("csb1",CSB)
End If
End Sub
And when I store as string, of course I lost the formatting.
Thanks