以下文档描述 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类 然后设置给 manifest 的application标签 android:name=".yourapp" 或者重写onCreate(),onLowMemory();PS:程序如入口就是application类onCreate 不是activity的onCreate
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类 然后设置给 manifest 的application标签 android:name=".yourapp"
或者重写onCreate(),onLowMemory();PS:程序如入口就是application类onCreate 不是activity的onCreate