/**
 * The set of callback APIs that are common to all application components
 * ({@link android.app.Activity}, {@link android.app.Service},
 * {@link ContentProvider}, and {@link android.app.Application}).
 */
application应用组件回调api集合接口;
ComponentCallbacks接口

包含两个接口方法:

1.

unlike activities, other components
* are never restarted when a configuration changes: they must always deal
* with the results of the change, such as by re-retrieving resources.
void onConfigurationChanged(@NonNull Configuration newConfig);

2.

/**
 * This is called when the overall system is running low on memory, and
 * actively running processes should trim their memory usage.  While
 * the exact point at which this will be called is not defined, generally
 * it will happen when all background process have been killed.
 * That is, before reaching the point of killing processes hosting
 * service and foregro

版权声明:本文为dongbaoming原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/dongbaoming/article/details/118189149