I keep getting this error "Error:(28, 43) error: ';' expected".
This is the code line where the error is:
public void onClick(View view) implements DialogInterface.OnClickListener {
I keep getting this error "Error:(28, 43) error: ';' expected".
This is the code line where the error is:
public void onClick(View view) implements DialogInterface.OnClickListener {
It is illegal statement for sure.
public void onClick(View view)
states that you define some method. But implements DialogInterface.OnClickListener
can be included in class/interface definition only. (Like class A implements B
).
If you are making listener, do this:
class MyListener implements DialogInterface.OnClickListener {
public void onClick(View view) {
...
}
}