I get a String data from Cursor, but I don’t know how to convert it to Array. How can I do that?
String[] mString;
for(cursor.moveToFirst(); cursor.moveToNext(); cursor.isAfterLast()) {
mTitleRaw = cursor.getString(cursor.getColumnIndex(SBooksDbAdapter.KEY_TITLE_RAW));
}
mString = mTitleRaw ????
You could just wrap mTitleRaw into a single element array like so:
Update:
What you probably want is to add all the rows to a single array, which you can do with an ArrayList, and mutate back to a String[] array like so: