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"))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.