Skip to content

Instantly share code, notes, and snippets.

@larkintuckerllc
Created November 27, 2017 01:34
Show Gist options
  • Save larkintuckerllc/61f52fe585af067d8941b3d2556ff20e to your computer and use it in GitHub Desktop.
Save larkintuckerllc/61f52fe585af067d8941b3d2556ff20e to your computer and use it in GitHub Desktop.
Android Room: Beyond the Codelab - 2
...
public void addTodo(String name, long date) {
Todo todo = new Todo();
todo.name = name;
todo.date = date;
mDb.todoModel().insertTodo(todo);
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment