We know there is an Application class in the Android api and
according to the class name it's used for global settings or
running entrance. What does it to do for an application? I will
dive into it along with some examples in this blog post. In the
Android reference it describes the Application class: "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 So you can create your own
subclass of Application like this: And specify its name in your
AndroidManifest.xml's The Application class is mainly used for
some Application level callbacks and for maintaining global
Application state. Application level callbacks -
onConfigurationChanged( ) Called by the system when the device
configuration changes while your component is running. -
onCreate( ) Called when the application is starting, before any
other application objects have been created. - onLowMemory( )
This is called when the overall system is running