Created
September 17, 2017 22:12
-
-
Save nisrulz/4f40bc62018171fbee8f19db7d40d2e1 to your computer and use it in GitHub Desktop.
Making your Android Library, Lifecycle-Aware blog post code snippet: MainActivity class
This file contains 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 MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); | |
// Init | |
AwesomeLibMain.getInstance().init(); | |
} | |
@Override | |
protected void onDestroy() { | |
super.onDestroy(); | |
// Cleanup | |
AwesomeLibMain.getInstance().cleanup(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment