public class

GDApplication

extends Application
java.lang.Object
   ↳ android.content.Context
     ↳ android.content.ContextWrapper
       ↳ android.app.Application
         ↳ greendroid.app.GDApplication

Class Overview

Define various methods that should be overridden in order to style your application.

Summary

Nested Classes
interface GDApplication.OnLowMemoryListener Used for receiving low memory system notification. 
[Expand]
Inherited Constants
From class android.content.Context
Public Methods
ExecutorService getExecutor()
Return an ExecutorService (global to the entire application) that may be used by clients when running long tasks in the background.
Class<?> getHomeActivityClass()
Return the class of the home Activity.
ImageCache getImageCache()
Return this application ImageCache.
Intent getMainApplicationIntent()
Each application may have an "application intent" which will be used when the user clicked on the application button.
void onLowMemory()
void registerOnLowMemoryListener(GDApplication.OnLowMemoryListener listener)
Add a new listener to registered GDApplication.OnLowMemoryListener.
void unregisterOnLowMemoryListener(GDApplication.OnLowMemoryListener listener)
Remove a previously registered listener
[Expand]
Inherited Methods
From class android.app.Application
From class android.content.ContextWrapper
From class android.content.Context
From class java.lang.Object
From interface android.content.ComponentCallbacks

Public Methods

public ExecutorService getExecutor ()

Return an ExecutorService (global to the entire application) that may be used by clients when running long tasks in the background.

Returns
  • An ExecutorService to used when processing long running tasks

public Class<?> getHomeActivityClass ()

Return the class of the home Activity. The home Activity is the main entrance point of your application. This is usually where the dashboard/general menu is displayed.

Returns
  • The Class of the home Activity

public ImageCache getImageCache ()

Return this application ImageCache.

Returns

public Intent getMainApplicationIntent ()

Each application may have an "application intent" which will be used when the user clicked on the application button.

Returns
  • The main application Intent (may be null if you don't want to use the main application Intent feature)

public void onLowMemory ()

public void registerOnLowMemoryListener (GDApplication.OnLowMemoryListener listener)

Add a new listener to registered GDApplication.OnLowMemoryListener.

Parameters
listener The listener to unregister

public void unregisterOnLowMemoryListener (GDApplication.OnLowMemoryListener listener)

Remove a previously registered listener

Parameters
listener The listener to unregister