There is a 100,000-character text that need to be displayed. If I put it into String object, I get an error \"constant string too long\". The same is with StringBuffer object.>
Strings Longer than 64k are not allowed to be used directly in java, but you can use them indirectly.
That is it. It will generate a string for you in strings.xml
If you already have string in your strings.xml
you can use this code to retrieve it:
String yourStr = getString(R.string.sampleBigString);