Android Open Source - simple-todo Todo Contract






From Project

Back to project page simple-todo.

License

The source code is released under:

MIT License

If you think the Android project simple-todo 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.fcduarte.todoapp.database;
/*  w w  w  .  j a  v  a2s  .c o  m*/
import android.provider.BaseColumns;

public final class TodoContract {

  public TodoContract() {
  }

  public static abstract class TodoItem implements BaseColumns {
    public static final String TABLE_NAME = "items";
    public static final String COLUMN_NAME_ITEM_DESCRIPTION = "description";
    public static final int COLUMN_NAME_ID_POSITION = 0;
    public static final int COLUMN_NAME_ITEM_DESCRIPTION_POSITION = 1;
  }

  public static final String SQL_CREATE_ENTRIES = "CREATE TABLE "
      + TodoItem.TABLE_NAME + " (" + TodoItem._ID
      + " INTEGER PRIMARY KEY AUTOINCREMENT," + TodoItem.COLUMN_NAME_ITEM_DESCRIPTION
      + " TEXT)";
  
  public static final String SQL_DELETE_ENTRIES = "DROP TABLE IF EXISTS "
      + TodoItem.TABLE_NAME;

}




Java Source Code List

com.fcduarte.todoapp.activity.EditItemActivity.java
com.fcduarte.todoapp.activity.TodoActivity.java
com.fcduarte.todoapp.database.SimpleTodoDb.java
com.fcduarte.todoapp.database.TodoContract.java
com.fcduarte.todoapp.database.TodoItemDataSource.java
com.fcduarte.todoapp.util.SwipeDismissListViewTouchListener.java