Coding for Localization Creating default strings and resources
suggest changeStart by creating default resources. If the device locale has no matching resource folder, Android loads the default folders. A resource that exists only in a qualified folder, and is missing from the default set, crashes the app when that qualifier does not match.
The default set of strings should be put in the following folder at the specified location:
res/values/strings.xml
Put the strings in the language most users of the app are expected to speak.
Also, default resources for the app should be placed at the following folders and locations :
res/drawable/
res/layout/
If your app requires folders like anim, or xml, the default resources should be added to the following folders and locations:
res/anim/
res/xml/
res/raw/
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents