我如何从数据库中获取 ID_ROW?
警报对话框
protected Dialog onCreateDialog(int id){
switch(id){
case MENU_1:
builder=new AlertDialog.Builder(this);
builder.setTitle("TITLE");
builder.setAdapter(scAdapter, null);
builder.setSingleChoiceItems(scAdapter, 0, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), "ROW_ID:"+which,Toast.LENGTH_SHORT).show();
}
});
dialog = builder.create();
dialog.show();
}
return null;
}
但是哪个 - 不是 ROW_ID(SQLITE) ,它是一个位置编号。