Cursor cursor = myBusanClothAdapter.queueAll();
cursor.moveToFirst();
int
idx =
0
;
if
(cursor !=
null
)
{
while
(cursor.moveToNext()==
true
) {
final
int
item_id = cursor.getInt(cursor.getColumnIndex(BusanClothAdapter.KEY_ID));
String item_content1 = cursor.getString(cursor.getColumnIndex(BusanClothAdapter.KEY_CONTENT1));
String item_content2 = cursor.getString(cursor.getColumnIndex(BusanClothAdapter.KEY_CONTENT2));
String item_content3 = cursor.getString(cursor.getColumnIndex(BusanClothAdapter.KEY_CONTENT3));
String item_content4 = cursor.getString(cursor.getColumnIndex(BusanClothAdapter.KEY_CONTENT4));
String item_content5 = cursor.getString(cursor.getColumnIndex(BusanClothAdapter.KEY_CONTENT5));
idx = idx+
1
;
Row rowdata = sheet1.createRow(idx);
c = rowdata.createCell(
0
);
c.setCellValue(item_content1);
c = rowdata.createCell(
1
);
c.setCellValue(item_content2);
c = rowdata.createCell(
2
);
c.setCellValue(item_content3);
c = rowdata.createCell(
3
);
c.setCellValue(item_content4);
c = rowdata.createCell(
4
);
c.setCellValue(item_content5);
Log.i(
"커서 테스트"
,item_id+item_content1+item_content2+item_content3+item_content4+item_content5);
}
}