I have this code which gets some data from a database
public List getAllObjects() { List Objectslist = new ArrayList&
Try to look at the difference between what have you done and what you need to do.
public class DBadapter extends ArrayAdapter { List modelItems = null; Context context; public Resources res; public DBadapter (Context context,List resource) { super(context,R.layout.grid_item_layout,resource); // TODO Auto-generated constructor stub this.context = context; this.modelItems = resource; }
Hope it will help you.