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 MyApplication extends Application { | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
Dao<Integer, Note> dao = EasyLite.getInstance(this) | |
.getDao(Note.class); | |
// Check if Note table contain any | |
// record | |
if (!dao.isExist()) { | |
// add code to save data you want |