Skip to content

Instantly share code, notes, and snippets.

@cnevinc
Created March 22, 2015 10:02
Show Gist options
  • Save cnevinc/e68477a29f6e517bf557 to your computer and use it in GitHub Desktop.
Save cnevinc/e68477a29f6e517bf557 to your computer and use it in GitHub Desktop.
Application.java
public class Application extends ContextWrapper implements ComponentCallbacks2 {
public Application() {
super(null);
}
/**
* Called when the application is starting, before any activity, service,
* or receiver objects (excluding content providers) have been created.
* Implementations should be as quick as possible (for example using
* lazy initialization of state) since the time spent in this function
* directly impacts the performance of starting the first activity,
* service, or receiver in a process.
* If you override this method, be sure to call super.onCreate().
*/
public void onCreate() {
}
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment