Android Question Save b4a preferencedialog map valute and retrive from file

mike1967

Active Member
Licensed User
Longtime User
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
 

mike1967

Active Member
Licensed User
Longtime User
B4X:
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"))
Very thanks
 
Upvote 0
Top