I'm getting an error that I'm not sure how to fix.
Code:
.setMultiChoiceItems(items, itemsChecked, new DialogInterface.OnMultiChoiceClickListener() {
@Override
public void onClick(DialogInterface dialog, int which, boolean isChecked) {
Toast.makeText(getBaseContext(), items[which] + (isChecked ? " checked!": " unchecked!"), Toast.LENGTH_SHORT).show();
}
})
Specifically for the onClick method there, I get the following error:
"The method of onClick() of type new DialogInterface.OnMultiChoiceClickListener() {} must override a superclass method."
I only get it for this one instance, and it's the only error I'm getting. I get the same error using the downloaded code and I'm using the 2.3.3 SDK for the program. Any ideas?
Thanks for the help!