How do I store an arraylist into internal storage?

132 views Asked by At

I want to create an ArrayList, which then gets stored into the phone's internal storage. I also want to retrieve that ArrayList again. Another thing I want to do is put ArrayLists into that ArrayList. Does anyone know how to do that? I am using Kotlin to code.

1

There are 1 answers

0
Adam Arold On

To me this seems like a regular serialization problem. You can either use SQLite (with Room as others suggested) or something similar to store the data, or you can just serialize the objects using Protocol Buffers.