How big can strings.xml resources be?

Viewed 855

I saw this post that says when strings.xml gets too big the app may crash. My strings.xml file is 800 plus lines right now and it will be a lot bigger in a while.

The answers in the post say that using a SQLite database can prevent the crash.

But in my case I have a SQLite database that takes the data for the entries from strings.xml because my app uses locales for different languages.

My question is, how big can strings.xml be? And if I hit the line limit what can I do to prevent the crash?

2 Answers

The Resources.get*** methods doesn't have any explicit limitation, so it depends on your device's memory size. And as I know the old version of Android has per process memory limitation.

Related