Syntax Error in Android = expected
playButton.setOnClickListener(new OnClickListener() { //LINE16
public void onClick(View v) {
Toast.makeText(MainActivity.this, "Starting to play",
Toast.LENGTH_SHORT).show();
} //LINE19
}); //LINE20
Error:: LINE 16--Syntax error on token "setOnClickListener", = expected
after this token
LINE 16--Syntax error on token(s), misplaced construct(s)
LINE 19--Syntax error, insert "}" to complete ClassBody LINE 20--Syntax
error on token "}", delete this token
No comments:
Post a Comment