Answer the question
In order to leave comments, you need to log in
What is the correct way to store text data in an android application?
You need to write an application like an interactive tutorial. The application will show a lot of text and pictures. The question arose of how to properly organize the storage of this data. For example, SQLite or JSON, or just text files with pictures in the Assets folder. I'm just wondering what is the best way to do this. At the same time, the application must download this information from a remote server at startup and update its directories.
The code is written in Java.
Answer the question
In order to leave comments, you need to log in
For updated data, you will have to use:
1. Files (text, pictures). You can get a directory File file = new File(context.getFilesDir(), filename);
2. SQLite - here you can store a catalog list of files.
For non-updatable:
1. values/strings.xml
2. assets directory
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question