Android Application类
Android中提供了Application这样一个类。看一下Android官方文档对此类的解释:
Base class for those who need to maintain global application state.
You can provide your own implementation by specifying its name in your AndroidManifest.xml’stag,
which will cause that class to be instantiated for ou when the process for your application/package is created.
大概意思就是:需要为应用程序提供全局变量,在AndroidManifest.xml中指定所实现的Application子类;