android application什么时候启动

如题所述

Application在创建应用程序时创建,当终止应用程序对象时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's <application> tag, which will cause that class * to be instantiated for you when the process for your application/package is * created.在SDK中的描述:Application类是为了那些需要保存全局变量设计的基本类,可以在AndroidManifest.xml的<application>标签中进行自己的实现,这样的结果是:当application或者包被建立的时候将引起那个类被建立。
温馨提示:答案为网友推荐,仅供参考