Android Open Source - SimpleNotes Note Application






From Project

Back to project page SimpleNotes.

License

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.

Java Source Code

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;
    }
}




Java Source Code List

com.moysa.simplenotes.core.Note.java
com.moysa.simplenotes.core.NotesComparator.java
com.moysa.simplenotes.core.NotesUtils.java
com.moysa.simplenotes.db.NoteDataBaseHelper.java
com.moysa.simplenotes.ui.activities.MainActivity.java
com.moysa.simplenotes.ui.activities.SettingsActivity.java
com.moysa.simplenotes.ui.adapters.NotesAdapter.java
com.moysa.simplenotes.ui.application.NoteApplication.java
com.moysa.simplenotes.ui.fragments.NavigationDrawerFragment.java
com.moysa.simplenotes.ui.fragments.NoteFragment.java
com.moysa.simplenotes.ui.listeners.ListHeaderAnimationListener.java