Android之Context概述

Context概述

官方注释信息:

1
2
3
4
5
6
7
8
9
10
11
/**
* Interface to global information about an application environment. This is
* an abstract class whose implementation is provided by
* the Android system. It
* allows access to application-specific resources and classes, as well as
* up-calls for application-level operations such as launching activities,
* broadcasting and receiving intents, etc.
*/
public abstract class Context {
...
}

与有关应用程序环境的全局信息的接口。这是一个抽象类,其实现由android系统提供。它允许访问特定于应用程序的资源和类,以及对应用程序级操作(如启动活动、广播和接收意图等)的向上调用。

关联:Android应用Context详解及源码解析

关联:Android Context完全解析,你所不知道的Context的各种细节