Created
November 27, 2017 01:34
-
-
Save larkintuckerllc/61f52fe585af067d8941b3d2556ff20e to your computer and use it in GitHub Desktop.
Android Room: Beyond the Codelab - 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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