public interface ComponentCallbacks
Activity
, Service
,
ContentProvider
, and Application
).Modifier and Type | Method and Description |
---|---|
void |
onConfigurationChanged(Configuration newConfig)
Called by the system when the device configuration changes while your
component is running.
|
void |
onLowMemory()
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.void onLowMemory()
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.