Back to project page SimpleNotes.
The source code is released under:
Apache License
If you think the Android project SimpleNotes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.moysa.simplenotes.ui.application; /*from w w w.j a va 2s . c om*/ import android.app.Application; import com.moysa.simplenotes.core.Note; import com.moysa.simplenotes.db.NoteDataBaseHelper; import java.util.List; /** * Created by Sergey Moysa on 27.02.14. */ public class NoteApplication extends Application { private static NoteApplication instance; private NoteDataBaseHelper mDataBaseHelper; private List<Note> mNotes; public NoteApplication() { instance = this; } @Override public void onCreate() { super.onCreate(); mDataBaseHelper = new NoteDataBaseHelper(this, "notesdb", null, 1); mNotes = mDataBaseHelper.getNotes(); } public static NoteApplication getInstance() { return instance; } public NoteDataBaseHelper getDataBaseHelper() { return mDataBaseHelper; } public List<Note> getNotes() { return mNotes; } }