public interface ComponentCallbacks
|Modifier and Type||Method and Description|
Called by the system when the device configuration changes while your component is running.
This is called when the overall system is running low on memory, and would like actively running process to try to tighten their belt.
void onConfigurationChanged(Configuration newConfig)
At the time that this function has been called, your Resources object will have been updated to return resource values matching the new configuration.
newConfig- The new device configuration.
Applications that want to be nice can implement this method to release any caches or other unnecessary resources they may be holding on to. The system will perform a gc for you after returning from this method.