Probably a beginner problem. but i can't get a list in map after Write it and Read again. i get this error message:
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
B4X:
Dim mapSetting As Map
mapSetting.Initialize
Dim List1 As List
List1.Initialize2(Array As String("Name1", "Name2", "Name3"))
mapSetting.Put("MyList", List1)
File.WriteMap(File.DirInternal, "Setting.txt", mapSetting)
mapSetting = File.ReadMap(File.DirInternal, "Setting.txt")
Dim List2 As List = mapSetting.Get("MyList")
For Each s As String In List2
Log(s)
Next