You just need to add one simple bracket ‘)’ at your last line.
});
See below
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();
}
});
1
solved getting too many errors of type ” multiple markers at this line” [closed]