Quantcast
Channel: Pragmatic Forums | Posts in topic 'Sudoku Section 3.5 pg 47'
Viewing all articles
Browse latest Browse all 75

Sudoku Section 3.5 pg 47 posted by Jay Avondoglio @ Tue, 23 Feb 2010 16:24:25 +0000

$
0
0

I have been following along with the book making a 2.1 application and all of the code minus one gravity xml change has worked so far.

Then i went to do the about.java part and had a problem. Not knowing how to fix it, I created a new project 1.6 and copied all of my code/xml/folders.

The same problem still exists so I have no idea what to do.

//Set up click listeners for all of the buttons View continueButton = findViewById(R.id.continue_button); continueButton.setOnClickListener(this); View newButton = findViewById(R.id.new_button); newButton.setOnClickListener(this); View aboutButton = findViewById(R.id.about_button); aboutButton.setOnClickListener(this); View exitButton = findViewById(R.id.exit_button); exitButton.setOnClickListener(this);

when highlighting over the setOnClickListener which is an error on all 4 lines, it says, “The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (Sudoku)”

Please help if you can. Thanks so much in advance.


Viewing all articles
Browse latest Browse all 75

Trending Articles