Handling configuration changes

When you provide Android with different resource directories relating to various possible hardware configurations, the resource loader will attempt to match the best resource files for the device that your application is running on. However, not all of the configuration parameters relate directly to the hardware, but instead describe the device state or some software configuration parameter. Examples of these types of parameters are the device language, network IDs, and device orientation. These parameters may change while your application is running. The most common example being the device orientation. Android has a built-in mechanism to handle such changes for you, and for the most part you won't need any special ...

Get Android User Interface Development now with O’Reilly online learning.

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