int index = C.getColumnIndex("name");
int nameIndex = C.getColumnIndex("name"); int ageIndex = C.getColumnIndex("age"); while(C.moveToNext()){ String name = C.getString(nameIndex); int age = C.getInt(ageIndex); //Do something with name and age values }The package library for this class is "android.database".