page.title=Language and Locale page.tags=androidn page.image=images/cards/card-nyc_2x.jpg @jd:body

In this document:

  1. Challenges in Resolving Language Resources
  2. Improvements to Resource-Resolution Strategy
  3. Designing your App to Support Additional Locales

Android N provides enhanced support for multilingual users, allowing them to select multiple locales in settings. Android N provides this capability by greatly expanding the number of locales supported and changing the way the system resolves resources. The new method of resolving resources is more robust and designed to be compatible with existing APKs, but you should take extra care to spot any unexpected behavior. For example, you should test to make sure that your app defaults to the expected language. Also, if your app supports multiple languages, you should ensure that this support works as intended. Finally, you should try to ensure that your app gracefully handles languages that you didn't explicitly design it to support.

This document starts by explaining the resource resolution strategy prior to Android N. Next, it describes Android N's improved resource-resolution strategy. Last, it explains how to take advantage of the expanded number of locales to support more multilingual users.

Challenges in Resolving Language Resources

Prior to Android N, Android could not always successfully match app and system locales.

For example, assume that you have the following situation: