Good day, I've quite big project currently localized to 21 languages where one language has around 9000 words! This is not so interesting, but
compiled and started application with all these resources, took after start around 11 MB in memory (simply measured by
Debug.getNativeHeapSize()
)when I remove 20 languages and keep only default one, it has after start only 7.5 MB
Because biggest problem of my app are devices with low memory available for a single process (mainly older devices with 2.X android), this is very serious question for me.
So here comes two questions, hope that someone will have any useful suggestion
I expect that Android loads only required resources, so how it's possible that these additional languages makes so huge difference, when in memory should be in worst case just list of available resources
if there is not any explanation for point 1., is there any way to precompile resources into separate packages and download them on request? For example in some starting activity where user select language he wants to use?
any suggestions are more then welcome. Thanks