FileDocCategorySizeDatePackage
Application.javaAPI DocAndroid 1.5 API2525Wed May 06 22:41:54 BST 2009android.app

Application

public class Application extends android.content.ContextWrapper implements android.content.ComponentCallbacks
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.

Fields Summary
Constructors Summary
public Application()

        super(null);
    
Methods Summary
final voidattach(android.content.Context context)

hide

        attachBaseContext(context);
    
public voidonConfigurationChanged(android.content.res.Configuration newConfig)

    
public voidonCreate()
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 voidonLowMemory()

    
public voidonTerminate()
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().