Coding for Localization Creating default strings and resources

suggest change

Start 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/

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents