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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -