android - Syntax error with Toast -
list<listitem> items = new arraylist<listitem>(); . . . . protected void onlistitemclick(listview l, view v, int position, long id) { //super.onlistitemclick(l, v, position, id); toast.maketext(listpage.this, items[position].sid, toast.length_short).show(); } getting error toast, error says "type of expression must array type resolved list[listitems]." need know wat correct way of writing toast is
replace
items[position].sid by
items.get(position).sid //assuming sid type of string
Comments
Post a Comment