Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created September 4, 2013 15:03
Show Gist options
  • Save preslavrachev/6438255 to your computer and use it in GitHub Desktop.
Save preslavrachev/6438255 to your computer and use it in GitHub Desktop.
Create a custom application class by subclassing the default Application class. According to the Android documentation, this is not a preferred way, as the Android guys consider a singleton with an access to an app-level Context a more modular approach. Nevertheless, it is worth knowing how to do it.
<application
android:name="com.you.yourapp.CustomApplication"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment