Online Course Support

Your res/values/strings.xml file contains:

Question 3
Your res/values/strings.xml file contains:

12
<string name=”labelA”>Lalala</string>
<string name=”labelB”>Broum</string>
and your res/values-fr/strings.xml file contains:

1
<string name=”labelB”>Bebebe</string>
What happen if the device language is set to French and the interface asks for the “labelA” string?

1 point

As the French version is not complete, everything will be displayed using the default language. The interface will display some “Lalala” and some “Broum”.

Android Studio will detect an error and will refuse to package this app untill the translation is complete.

The French version will be used when available, elsewhere the default version will be used. The interface will display some “Lalala” and some “Bebebe”.

The application will stop (crash) when trying to display the string named labelA.

Similar Posts