I have this kind of data. This can be or don't be an array. Just for easy reference.
ArrayName = Array1, Array2, Array3
Array1 = abc, cde, fgh
Array2 = abc, cde
Array3 = abc, cde, fgh, ijk, lmn
So, what are the best method to store this kind of data.
If I want to
- Add or delete Array1 and all things inside
- Add or delete item in Array2(eg. adding fgh or remove cde)
Methods I discovered:
- SharedPreference Android Shared preferences example
- Arrays
- SQLite Android SQLite Example
- Text file
Please share the pro and cons of why you choose the method. Please also share if there are better ways to store this kind of data.
Kindly edit this if you found a better link or sample for other to reference.