public void onClick(View v) {
switch (v.getId()) {
int record_position = null;
case R.id.Button01:
// Get all contacts
db.open();
Cursor c = db.getAllContacts();
if (record_position == null){
if (c.moveToFirst()) {
record_position = c.getPosition();
DisplayContact(c);
}
}
else if (c.moveToPosition(record_position)){
c.moveToNext();
record_position = c.getPosition();
DisplayContact(c);
}
else {
if(c.moveToFirst){
record_position = c.getPosition();
DisplayContact(c);
}
}
db.close();
break;
}
}
为什么我会收到此错误?问题是什么?出了什么问题?为什么我会收到这个错误?问题是什么?出了什么问题?