Android.App.Application Class
Base class for those who need to maintain global application state.

See Also: Application Members

Syntax

[Android.Runtime.Register("android/app/Application", DoNotGenerateAcw=true)]
public class Application : Android.Content.ContextWrapper, Android.Content.IComponentCallbacks2, IDisposable

Remarks

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.

There is normally no need to subclass Application. In most situation, static singletons can provide the same functionality in a more modular way. If your singleton needs a global context (for example to register broadcast receivers), the function to retrieve it can be given a Android.Content.Context which internally uses Android.Content.Context.ApplicationContext when first constructing the singleton.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1