.setMultiChoiceItems(R.array.arr, isCheck,
new DialogInterface.OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface dialog,
int which, boolean isChecked) {
// TODO Auto-generated method stub
isCheck[which] = isChecked;
}
})
.setPositiveButton("확인",
new DialogInterface.OnClickListener() {
@Override
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
다이얼로그에서 다중선택후 선택된체크에 따라 각각 다른이벤트를 처리하고 싶어서
이렇게 사용하였는데 잘못된건가요? ㅠㅠ
어떻게 해야할까요? ㅠㅠㅠㅠ
public void onClick(DialogInterface dialog, int which)
{
if (isCheck[0])
{
feed();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
EditText upload_text = (EditText) update_drl
.findViewById(R.id.upload_text);
Toast.makeText(S_DiaryActivity.this,
upload_text.getText().toString(),
Toast.LENGTH_LONG).show();
}
}).setNegativeButton("취소", null).create();



