7

I am making an offline encyclopedia app. So large text data must be stored for using them when required. So is it a good practice to use strings.xml resource file to store such large amount of text data? Will it result in any kind of performance issues?

AES
  • 231
  • 1
  • 3
  • 10

2 Answers2

5

Yes, of course. it's better to use for your text even large static text. Check some useful links for better understanding: Which is better when storing some large texts: strings in XML resource file or a java Strings in a class

Load Large Text in Android

http://developer.android.com/guide/topics/resources/string-resource.html

Community
  • 1
  • 1
Androider
  • 3,691
  • 2
  • 11
  • 23
0

It is suggested way to use XML resource files which will also ease your job in case you want to localize your application with string resources.

ulusoyca
  • 593
  • 5
  • 16