Hello
I save a map (via writeMap method) which contains a String, a map and a cameraSize object on text file.
When I read Map (via readMap method) there is a string instead of the cameraSize object.
Where is my fault?
here is the text saved:
#Wed Jan 08 18:21:26 CET 2014
data={fh_button\=Ok, effect\=sepia, size\=6, save\=1}
effect=sepia
size=[Height\=480, IsInitialized\=false, Width\=640\n]
Thanks
John Rossati
I save a map (via writeMap method) which contains a String, a map and a cameraSize object on text file.
When I read Map (via readMap method) there is a string instead of the cameraSize object.
Where is my fault?
B4X:
Dim effects As List = camEx.GetSupportedColorEffects
camEx.SetColorEffect(formData.Get("effect"))
ToastMessageShow(formData.Get("effect"), False)
camEx.CommitParameters
parameters.Put("effect",formData.Get("effect"))
...
Dim ps As CameraSize = pictureSizes(i)
camEx.SetPictureSize(ps.Width, ps.Height)
camEx.CommitParameters
parameters.Put("size",ps)
parameters.Put("data",formData)
File.Writemap("",iniFile, parameters)
here is the text saved:
#Wed Jan 08 18:21:26 CET 2014
data={fh_button\=Ok, effect\=sepia, size\=6, save\=1}
effect=sepia
size=[Height\=480, IsInitialized\=false, Width\=640\n]
Thanks
John Rossati