1 指定位置
Cursor c = db.query("capitals",new String[] {"prefecture"},null,null);
c.moveToFirst(); CharSequence[] list = new CharSequence[c.getCount()]; for (int i = 0; i < list.length; i++) { list[i] = c.getString(0); c.moveToNext(); } c.close();
1 指定位置
Cursor c = db.query("capitals",new String[] {"prefecture"},null,null);
c.moveToFirst(); CharSequence[] list = new CharSequence[c.getCount()]; for (int i = 0; i < list.length; i++) { list[i] = c.getString(0); c.moveToNext(); } c.close();