From c29090f091e3bb7447fb8fbb75bd73b6e64fc791 Mon Sep 17 00:00:00 2001 From: dnbit Date: Sat, 27 Jun 2015 17:41:39 +0100 Subject: [PATCH] fix: id should be long --- .../example/com/dictionaryproviderexample/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);