android - Dynamic, multiple string config for an app -


i need changing config in app. have right strings.xml file, holds different values i.e. city_name. have different build configuration, there lot of different looking apps can build using same codebase, each 1 of them has own values directory, unique strings.xml.

what want achieve is, each app want have multiple city_name attributes "app a", strings.xml in values directory, want have city_name_xyz, city_name_abc. "app b", strings in values directory, contain city_name_123, city_name_mno etc.

so, within code obtain "_xyz" or "_mno" suffix, thing dont know how access resources dynamic name. not know start looking answers, can me.

best, radek

you can use flavors - have different strings.xml files in different flavors


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -