diff --git a/app/src/main/java/android/example/com/dictionaryproviderexample/MainActivity.java b/app/src/main/java/android/example/com/dictionaryproviderexample/MainActivity.java index 4f6c635..5fc5bb4 100644 --- a/app/src/main/java/android/example/com/dictionaryproviderexample/MainActivity.java +++ b/app/src/main/java/android/example/com/dictionaryproviderexample/MainActivity.java @@ -59,7 +59,7 @@ protected void onCreate(Bundle savedInstanceState) { while (cursor.moveToNext()) { // Use that index to extract the String value of the word // at the current row the cursor is on. - int id = cursor.getInt(idColumn); + long id = cursor.getLong(idColumn); int frequency = cursor.getInt(frequencyColumn); String word = cursor.getString(wordColumn);