java - How to convert ArrayList to ListView? -


this question has answer here:

i'm programming android application , 1 feauture listview generated , populated mysql database.

this outputted arraylist:

databasehandler db = new databasehandler(this);  list<suspect> list = db.getallcontacts(); 

do use cursor input in listview? code appreciated..

i recommend use cursoradapter in case don't need data manipulations after query.
if want use list try arrayadapter.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

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

java - Are there any classes that implement javax.persistence.Parameter<T>? -