Hello,can Someone produce me sample code for save b4a preferencedialog valute to file and retrive from file?
I try file.savemap without results. Thanks in advances
Dim ser As B4XSerializator 'RandomAccessFile
File.WriteBytes(XUI.DefaultFolder, "map.obj", ser.ConvertObjectToBytes(map))
Dim map As Map = ser.ConvertBytesToObject(File.ReadBytes(XUI.DefaultFolder, "map.obj"))
Dim ser As B4XSerializator 'RandomAccessFile
File.WriteBytes(XUI.DefaultFolder, "map.obj", ser.ConvertObjectToBytes(map))
Dim map As Map = ser.ConvertBytesToObject(File.ReadBytes(XUI.DefaultFolder, "map.obj"))