Chapter    4

Application Resources

Resources are one of the most important components of an application. It is always good practice to externalize resources in order to maintain consistency and to prevent resource duplication, as resources can be referenced from multiple places within the application. Decoupling the code and the resources also has other advantages.

  • Localization of the Application: The application can carry an alternative set of resources for various languages, and it can switch between them based on the user’s locale during runtime. This makes it possible to support multiple languages and locales with a single application binary.
  • Device Specific Look and Feel: As the Android platform is highly fragmented, there is no magic ...

Get Android Quick APIs Reference now with O’Reilly online learning.

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