Created
September 15, 2018 22:29
-
-
Save barmgeat/f9c1904d9f3f9948c87ca85775f2df9e to your computer and use it in GitHub Desktop.
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 insertData() { | |
ContentValues values = new ContentValues(); | |
values.put(Words.COLUMN_WORD, "Test Word"); | |
values.put(Words.COLUMN_WORD_T, "Test T Word"); | |
values.put(Words.COLUMN_WORD_T2, "Test T2 Word"); | |
values.put(Words.COLUMN_WORD_T3, "Test T3 Word"); | |
values.put(Words.COLUMN_ARTIKEL, Words.ARTIKEL_UNKNOWN); | |
Uri newURI = getContentResolver().insert(DeutchVContract.CONTENT_URI, values); | |
if (newURI != null) { | |
Toast.makeText(getApplicationContext(),"Word Saved ..",Toast.LENGTH_LONG).show(); | |
} else { | |
Toast.makeText(getApplicationContext(),"there is a Problem, Not saved ..",Toast.LENGTH_LONG).show(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment