Created
December 2, 2016 10:31
-
-
Save Xifax/fff279903c460ce53e5f5de9dff534e3 to your computer and use it in GitHub Desktop.
SugarORM shamanisms
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
/** | |
* Extending SugarApp with transparent initialization | |
*/ | |
public class TestApp extends SugarApp { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
SugarContext.init(this); | |
} | |
@Override | |
public void onTerminate() { | |
SugarContext.terminate(); | |
super.onTerminate(); | |
} | |
} | |
/* | |
NB: in Manifest, | |
<application | |
android:name=".TestApp"> | |
</application> | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment