我从Cursor获取String数据,但我不知道如何将其转换为Array。我怎样才能做到这一点?将字符串转换为数组(android)
String[] mString;
for(cursor.moveToFirst(); cursor.moveToNext(); cursor.isAfterLast()) {
mTitleRaw = cursor.getString(cursor.getColumnIndex(SBooksDbAdapter.KEY_TITLE_RAW));
}
mString = mTitleRaw ????
你确定这是好的吗?你的第一个元素被跳过了,不应该是:for(c.moveToFirst();!c.isAfterLast(); c.moveToNext()) – Pentium10 2010-03-04 21:53:19