Setting listeners



I am adding a set listener for a true button and simply copying the code from the book here as it’s not a challenge exercise. The error says that annotations are not allowed here (where the override is written under the onclick listener. Also there is a parenthesis after a bracket which seems incorrect, but I am totally novice. Can someone advise on what is going on here?

protected void onCreate(Bundle savedInstanceState) {

    mTrueButton = (Button) findViewById(;
    mTrueButton.setOnClickListener(new View.OnClickListener()){
          public void onClick(View v){

            //Does nothing but will soon!


    mFalseButton = (Button) findViewById(;