I am having this error:
@Override
public void paint(Canvas canvas) {
}
The method paint(Canvas) of type MainActivity must override or implement a supertype method.
The error disappears only if I remove the @Override before the method.
I have already set in project properties java compiler on level 1.6
Can you help me?
If you are extending an
Activityyou can’t override the paint method.Paint is not an
Activitymethod. You can only override existent methods from the class you are extending.Also I never used Paint. Did you want to override the
onDraw(Canvas)from theView?