dimanche 29 mars 2015

Holding data in List

I'm using SQLite with Sugar ORM to save my data in database. The problem is that I don't know how to pass it to my list and then display it on my ListView.


I was trying with:



private void DataHolderList(){
listView = Base.listAll(Base.class);

adapter = new ArrayAdapter<Base>(this,R.layout.singlelist,R.id.listView,listView);

listView.setAdapter(adapter);

}

Aucun commentaire:

Enregistrer un commentaire