繰り返し処理
[android]// データの読み込み
Cursor cursor = db.query(“sample”, null, null, null, null, null, null);
if (cursor.getCount() != 0) {
boolean isEof = cursor.moveToFirst();
while (isEof) {
String name = cursor.getString( cursor.getColumnIndex(“name”) );
isEof = cursor.moveToNext();
}
}
// Cursor の開放
cursor.close();[/android]