I need to generate an array that looks like the following:
String[] testlist = new String[] {"First Note", "Second Note", "Third Note"};
The information I need is inside a SQLite Database. I'm using the following code to access:
db = new notesDBHelper(this);
//notesDBHelper is a standard SQLiteHelper, the DB has a table called notes with fields 'title' and 'note_text'
String query = String.format("SELECT * FROM notes");
db.getReadableDatabase().rawQuery(query, null);
This is the point where I'm stuck - The query returns without error, but I'm not sure of the syntax to build the string.