java - how to set text to textview from a string Arraylist -
how can set string arraylist "mylist[0]" text textview ?
intent in= getintent(); arraylist<string> mylist = in.getstringarraylistextra("rname"); textview t = (textview) findviewbyid(r.id.textview); t.settext(mylist[0]);//getting error here saying "array type expected" }
you can replace code
t.settext(mylist[0]);
with
t.settext(mylist.get(0));
Comments
Post a Comment