我想将“所有字符串”数据(从“光标”获取)放入“数组”中。但我不知道为什么“数组”只返回一个值?我在这里迷路了。有人能帮我吗?这是我的代码片段
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;
}