V
V
Vlad1612014-05-05 00:46:16
Android
Vlad161, 2014-05-05 00:46:16

What is the best way to store a lot of text data in Android?

It is necessary to make an application in which there should be a lot of text data., About 120 strings. Each "item" must have several lines, for example: id, name, question. The first thing that came to mind was to put strings into the HashMap and pull them out by key there. I also came up with the idea with SQLite, to put data in there, and then pull it out. With the use of ready-made SQLite databases in android, everything is bad, only through crutches (creating a new one and overwriting it, etc.). So the question is how to do better? Maybe there are some other functions that will help me a lot, but I don't know about them?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Deerenaros, 2014-05-05
@Deerenaros

And what problems with SQLite? What are ready? Isn't it available out of the box ?
Well, also, there is xml , json . There are even pythons . Choose - I do not want.

A
Anton Kuzmichev, 2014-05-05
@Assargin

I once tried to program for Android, and it seems like SQLite is a standard there, not a crutch, and everything should be working with it. You just need to read the documentation and accept what is written there.
Again, tips & tricks about using SQLite in Android development are googled at times: habrahabr.ru/post/205620/, where the second point is the creation and initial filling of the database.

K
kaspartus, 2014-05-05
@kaspartus

developer.android.com/reference/android/database/s...
If you look at the set of public methods, it becomes clear that the android sdk provides us with a complete wrapper over the database. I wouldn't call it crutches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question