Created
September 4, 2013 15:03
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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