One way would be to create int
of your columns:
int idIndex = cursor.getColumnIndexOrThrow(Columna_ID);
int tituloIndex = cursor.getColumnIndexOrThrow(Columna_Titulo);
Then you create a ArrayList
String, the cursor
reads the database
and add them to the arraylist
ArrayList<String> miArrayList = new ArrayList<String>();
while(cursor.moveToNext()) {
miArrayList.add(cursor.getString(tituloIndex)); // ó idIndex
}
And you show it in the LogCat:
Log.i("MIRA_ARRAY", String.valueOf(miArrayList)); // muestra todos
Log.i("MIRA_UNO", String.valueOf(miArrayList.get(0))); // muestra solo el primero