Android Question How to save the contexts of a Map

Richard Peck

Member
Licensed User
Longtime User
Hi All,
Does anyone know how to save a Map and list. They both have binary date and I'd like to restore them. I;ve looked around the forum and it seems that users are saying to use the RandomAccessFile library. It says it can save the contents of a List or Map but I haven't been able to do it. Does anyone know where there's an example of can anyone give me some guidance.
Thanks
 

DonManfred

Expert
Licensed User
Longtime User
B4A does not have "Pointers". So what do you mean with "you have a map with pointers to...."

Anyway, i would use KeyValueStore
 
Upvote 0

Richard Peck

Member
Licensed User
Longtime User
The map contains the location in the List that the Binary date is contained. The list contain data which may be used by multiple entries in the map.
Just trying to reduce to total memory usage
The speed should be similar. Both are based on RandomAccessFile.WriteObject.
 
Upvote 0
Top