I'm trying to get id
column from my database, ad it to ArrayList and to each id add "\t0",
My database is created using Room, i have a lot of column which one of them is
@PrimaryKey(autoGenerate = true)
private int id;
I am operating using ItemDAO
and i have there function
@Query("SELECT * FROM item")
List<Item> getItems();
Which writes to ArrayList<Items>
all of contents
I was thinking of running it trough the loop getting id
and adding to ArrayList<String>
but this doesn't seems to be eficient.