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's <application> tag, which will cause that class to be instantiated for you when the process for your application/package is created. 刚刚看懂,继承 Application,并在xml的Application属性中的 name指定自己写的实现类即可,ps.问下 在这个类中一般可以进行哪些操作,不会只定义些全局变量吧?