I think what you need is something like this:
public void cargalist(){
ArrayList <String> items = new ArrayList<>();
SQLiteDatabase db=sql.getReadableDatabase();
Cursor fila= db.rawQuery("select * from items",null);
if(fila.moveToFirst()){
do{
items.add("Clave: "+fila.getString(0)+"\n"+
"Cantidad: "+fila.getString(1)+"\n"+"Nombre: "+fila.getString(2));
}while (fila.moveToNext());
}
ArrayAdapter<String> adaptador=new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1,items);
listait.setAdapter(adaptador);
}
The only thing you do is the query is what you want, and put it into a arrayadapter as shown in the example