Android Open Source - TodoList App






From Project

Back to project page TodoList.

License

The source code is released under:

Apache License

If you think the Android project TodoList 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 lyc.app;
/*from   ww w  .jav  a2  s. c  o m*/
import android.net.Uri;
import android.provider.BaseColumns;

/**
 * Created by ivan on 14-10-15.
 */
public final class App {

  public static final String AUTHORITY = "lyc.app.provider.Todo";

  private App() {

  }

  public static final class Todo implements BaseColumns {

    private Todo() {
    }

    private static final String SCHEME = "content://";
    public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + "/todos");
    public static final Uri CONTENT_ID_URI_BASE = Uri.parse(SCHEME + AUTHORITY + "/todos/");

    public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.lyc.app.todo";
    public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.lyc.app.todo";

    public static final String TABLE_NAME = "todo";

    public static final String COLUMN_TITLE = "title";
    public static final String COLUMN_DESCRIPTION = "description";
    public static final String COLUMN_STATUS = "status";
    public static final String COLUMN_PLAN_FINISHED_DATE = "plan_finished_date";
    public static final String COLUMN_CREATE_DATE = "create_date";
    public static final String COLUMN_ACTUAL_FINISHED_DATE = "actual_finished_date";

    public static final String DEFAULT_SORT_ORDER = COLUMN_CREATE_DATE + " DESC";
    public static final String
        ACTUAL_FINISHED_DATE_SORT_ORDER =
        COLUMN_ACTUAL_FINISHED_DATE + " DESC";

    public static final int STATUS_UNFINISHED = 1;
    public static final int STATUS_FINISHED = 2;
  }

}




Java Source Code List

lyc.app.AddActivity.java
lyc.app.App.java
lyc.app.BootReceiver.java
lyc.app.DateUtils.java
lyc.app.MainActivity.java
lyc.app.TodoService.java
lyc.app.adapter.TodoCursorAdapter.java
lyc.app.fragment.FinishedTodoFragment.java
lyc.app.fragment.UnFinishedTodoFragment.java
lyc.app.provider.TodoProvider.java
lyc.simplesqlite.annotation.Column.java
lyc.simplesqlite.annotation.Table.java
lyc.simplesqlite.exception.AnnotationNotFoundException.java
lyc.simplesqlite.util.MetaData.java
lyc.simplesqlite.util.StringUtils.java