How to register application class in manifest file?
Try this:
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="Monitor">
See the good reference link below :
How to use the Application object of Android
Thanks.
Simple, put android:name
attribute with your application class name in <application />
tag of Application's Manifest.xml
<application android:name=".Monitor" .... >
Update:
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 tag, which will cause that class to be instantiated for you when the process for your application/package is created.
More info look at http://developer.android.com/reference/android/app/Application.html