Question:
Is there a limit on the number of lines in a string.xml file? Once I had to create a class with a number of lines> 5k and I was not allowed to start the project.
Answer:
The "logical" limit will be 65536 , since it is 2 ^ 16. so the limit in a character is 2 ^ 16/2 or 2 ^ 15, which is 32768 .
Since 32768 it seems to be stripped down, so I log what was inside
Log.i("tag", "32768 : "+test32k768.length() + " content : " + test32k768);
And the result is:
I/tag: 32768 : 16 content : STRING_TOO_LARGE