![]() | Sudoku About.java (About Box) |
|
17 Mar 2011, 03:59
Ricardo Rios Jaen (2 posts) |
Hi, I´m trying to set up de About Box in the Sudoku Example (page 46). But I’m getting an error whit the About.java file: Error: The method OnCreate(Bundle) of type About must override or implement a supertype method Code: package org.example.sudoku; import android.app.Activity; public class About extends Activity {
@Override
protected void OnCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
} All other code lines and files are free of errors and warnings. If I delete the Override line, the app runs, but the About Boz does not display the text. Making some research I found topics about changing the compiler compliance level to 1.6, but nothing, the error stills showing. Thanks in advance. |
|
17 Mar 2011, 17:23
Ed Burnette (1316 posts) |
Try onCreate instead of OnCreate. |
|
27 Mar 2011, 17:13
Ricardo Rios Jaen (2 posts) |
Thanks!!! great book by the way…. |
|
28 Mar 2011, 17:38
Ed Burnette (1316 posts) |
Glad you like it. Reviews on Amazon would be much appreciated. |
|
28 Aug 2012, 08:54
Sheetal Agarwal (4 posts) |
I had the same problem ..Thanks a lot |
| You must be logged in to comment |

