Applicationpublic class Application extends android.content.ContextWrapper implements android.content.ComponentCallbacksBase 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. |
Constructors Summary |
---|
public Application()
super(null);
|
Methods Summary |
---|
final void | attach(android.content.Context context)
attachBaseContext(context);
| public void | onConfigurationChanged(android.content.res.Configuration newConfig)
| public void | onCreate()Called when the application is starting, before any other application
objects have been created. Implementations should be as quick as
possible (for example using lazy initialization of state) since the time
spent in this function directly impacts the performance of starting the
first activity, service, or receiver in a process.
If you override this method, be sure to call super.onCreate().
| public void | onLowMemory()
| public void | onTerminate()Called when the application is stopping. There are no more application
objects running and the process will exit. Note: never depend on
this method being called; in many cases an unneeded application process
will simply be killed by the kernel without executing any application
code.
If you override this method, be sure to call super.onTerminate().
|
|