Hi, I want to put a "All String" data (get from "Cursor") into an "Array". But I don't know why the "Array" just return one value? I'm get lost here. Can someone help me? This is my code snippet
private String[] getOneColumn(){
String[] myArray = null;
Cursor cursor = mDbHelper.fetchAllNotes();
startManagingCursor(cursor);
if(cursor.moveToFirst()){
String myTitle = cursor.getString(cursor.getColumnIndex(SBooksDbAdapter.KEY_TITLE_RAW));
myArray = myTitle.split(";");
}
return myArray;
}