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.