I´ve a problem with my List<String>
List<String> werte = new LinkedList<String>();
if(c.moveToNext()){
werte.add(c.getString(c.getColumnIndex("fragencount")));
}
String size = "" +werte.size();
tv.setText(size);
I want to add strings from my Cursor into a LinkedList<String>(). When I try c.getCount(), I get 13.
When I try to read the size of my LinkedList, I get 0. I don´t understand why.
use
do-whilefor adding all value in LinkedList