Skip to content

Instantly share code, notes, and snippets.

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