R
R
razh20092014-07-25 16:37:21
Java
razh2009, 2014-07-25 16:37:21

How to organize the storage of large text resources in android?

Good afternoon. I am writing an application that requires terms of use. When you start the application, you need to show a large file and offer to agree with it.
How to properly store such resources?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mintormo, 2014-07-25
@razh2009

Do it in the simplest way: create a separate file for the text of the agreement in the values ​​folder and place it there as a string resource. At least this approach has two advantages: it's easy to work with text, it's easy to make localization for other languages. I don't see the point in inventing any quirks here.

K
kanashii, 2014-08-08
@kanashii

If the agreement is needed only at the first start, as an option, it can be stored in assets. The advantage of this approach is that if it is not accessed, then it will not be loaded into RAM either.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question