android - Proper use of ArrayAdapter? -


thelists = new thelists();  class myadapter extends arrayadapter<thelists> {     myadapter()      {         super(listpage.this, r.layout.list_row, r.id.sname, a);     } } 

what wrong code ?

i'm getting error on "super" line says "the constructor arrayadapter(listpage,int,int,thelists) undefined"

you need pass either thelists[] (java array) or list<thelists> (implementation of java.util.list) final parameter, given arrayadapter<thelists> declaration.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -