@Override
public void onCancel() {
// TODO Auto-generated method stub
ERROR:The method onCancel() of type SoftKeyboard must override a superclass method SoftKeyboard.java /EmotePractice/src/com/emote line 691 Java Problem
Superclass?? I thought @Override was meant to catch errors made with grammar, why is it saying this?
Are you sure that the superclass you’re overriding has a method called
onCancel(), with no parameters andvoidreturn type? If the answer is no, try removing the@Overrideannotation and see if it works for you.The
@Overrideannotation is used for indicating that the method is overriding an identically declared method in a superclass. From the javadocs: