here is the code:
public void onClick(DialogInterface dialog, int whichButton)
{
Toast.makeText(getBaseContext(), "Cancel clicked", Toast.LENGTH_SHORT);
}
}
builder.setMultiChoiceItems(items , itemsChecked,
new DialogInterface.OnMultiChoiceClickListener()
{
public void onClick(DialogInterface dialog, int which, boolean isChecked)
{
Toast.makeText(getBaseContext(), items[which]+ (isChecked ? "checked!" : "unchecked!"),
Toast.LENGTH_SHORT).show();
}
});
i am getting a number of curly braces related errors though code seems correct to me.. please help!!