Android Question Can KeyValueStore hold multiple records of data?

HappyDad

Member
Licensed User
Longtime User
I just started to learn how to store data, and I am looking for an easy way to do it, other than writing to a file by myself.
My app will deal with about a few hundred records of data, each record contains multiple columns (fields).
I think with SQLite database, it can be done.
But then I found the KeyValueStore, and according to the introduction "Key / value data stores (sometimes referred as NoSQL) can offer an alternative to relational databases (SQL). The key / value store offers a simple functionality. It allows you to store all kinds of values, where each value is mapped to a key.", it looks like that it can also do the job?
But while trying to do the programming, I couldn't figure out how to add a new record, how to move from one record to another.
With the Put... methods and Get.... methods, I don't know which record it is writing or retrieving.

Please tell me how to do it.
Or, maybe I should use SqLite for my purpose?
 
Top