Relative Content

Tag Archive for androidandroid-resources

How to force the use of a string resource when there is more than one?

I have a string resource with the name app_name and the value My App Name. I only have a single strings.xml file, so my application only has one language and one default strings.xml file. The problem occurs when I import a library that has several resource strings with the same name (app_name) and other value (Library Name) for several languages such as Spanish and French. This causes all the places where I use app_name resource to return Library Name instead of My App Name when the language the user selects in the configurations is French or panish.