Localization is the process of providing the appropriate resources for your app based on the device’s language settings. In this chapter, you are going to localize HelloMoon. In particular, you will provide Spanish versions of the audio file and the strings file. When a device’s language is set to Spanish, Android will find and use the Spanish resources.

Figure 15.1  ¡Hola, Luna!

¡Hola, Luna!

Localizing Resources

Language settings are part of the device’s configuration, and Android provides configuration qualifiers for different languages. This makes localization simple: you create resource subdirectories with the desired language configuration ...

Get Android Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.