Last active
September 17, 2017 22:08
-
-
Save nisrulz/18790c977886236404b0f5ddae68910e to your computer and use it in GitHub Desktop.
Making your Android Library, Lifecycle-Aware blog post code snippet: AwesomeLibMain class
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
public class AwesomeLibMain { | |
static final AwesomeLibMain ourInstance = new AwesomeLibMain(); | |
public static AwesomeLibMain getInstance() { | |
return ourInstance; | |
} | |
private AwesomeLibMain() { | |
} | |
public void init() { | |
System.out.println("Called From AwesomeLibMain Class, init()"); | |
} | |
public void cleanup() { | |
System.out.println("Called From AwesomeLibMain Class, cleanup()"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment