It is a very efficient way to derive a subclass from Android Application class to manage system event such as low memory, configuration changes, or to exchange complicated object between different activities. Here is how to do it:
Java code:
public class MyApplication extends Application {
}
AndroidManifest.xml:
android:label=’@string/app_name’
android:name=’MyApplication’
android:description=’@string/app_desc’