Here is the code, by this I can retrieve all the columns data from the database. But the problem is that now I want to retrieve only one column, that is my requirement.link1st link 2nd link3rd
word_list = new ArrayList<>(); SQLiteDatabase sd = mydb.getWritableDatabase(); Cursor cursor = sd.query("stickerstable",null, null, null, null, null, null); if (cursor.moveToFirst()){ do{ word_list.add(new data_items( cursor.getInt(cursor.getColumnIndex(ID)), cursor.getString(cursor.getColumnIndex(STICKER_AUTHOR)), cursor.getString(cursor.getColumnIndex(STICKER_NAME) ))); }while (cursor.moveToNext()); cursor.close(); sd.close(); }