![]() | Chap 3 "About" button problem |
|
20 Feb 2011, 07:51
John Blackwell (12 posts) |
I’ve got the 3rd edition book. I can get through 3.4, but for the third time now I can’t get the “About” box procedure to work. First, whenever I imported files in, I always got some sort of error associated with “R”. But, if I typed them in by hand or copied them to notepad and then pasted, then most of the time they worked. But, I got to page 48 without errors until I had to edit the AndroidManifest.xml file. I put in the extra Ugh. <?xml version=”1.0” encoding=”utf-8”?> |
|
21 Feb 2011, 10:07
Marcus Näslund (13 posts) |
You don’t need
in fact, it’s enough with
I am not even sure if the former even works, try erasing it. |
|
21 Feb 2011, 16:32
John Blackwell (12 posts) |
I deleted the line as you suggested, and I still have a bunch of errors on my lines that have “R” in them in Sudoku.java and About.java. |
|
21 Feb 2011, 18:32
Austin Warren (13 posts) |
Change your android manifest file to look like this. Once you’ve done that. Click project—> Clean then click project—> Build this should fix any errors. Cheers, Austin |
|
21 Feb 2011, 19:30
Ed Burnette (1316 posts) |
Changing the manifest file won’t effect errors in your Java files. Delete any “import android.R;” lines that Eclipse put in there by mistake. Also do a Project > Clean command. |
| You must be logged in to comment |

