Skip to content

Instantly share code, notes, and snippets.

Avatar

Mario Dennis mdennis10

View GitHub Profile
View .java
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