![]() | about box in 3.5 |
|
30 Mar 2011, 09:46
Peter Koukoulis (4 posts) |
Hi I’m attempting to run the modified about as per the layout suggested in section 3.4. I keep getting the message; I have looked in the LogCat and found the following error listed: I have however supplied all the layout_width attributes as per the layout suggested in section 3.4. The following is a copy of the main.xml file;
Any help would much appreciated. Thanks Peter |
|
30 Mar 2011, 10:47
Anthony Shaw (115 posts) |
Is the error happening when you change the orientation of the device or when you start it up? The main.xml that you posted seems to be the one from res\layout-land and is the one that would be used when you change the orientation of the device to landscape and it does seem to contain a layout_width attribute. If the error happens when you first start the application with the device in portrait orientation then it would indicate the problem is in the res\layout\main.xml and it is the very first LinearLayout (as indicated by Binary XML file line #2:) that is missing the layout_width attribute. |
|
30 Mar 2011, 11:09
Peter Koukoulis (4 posts) |
Hi Anthony, bq.Is the error happening when you change the orientation of the device or when you start it up?bq. Something I’ve just realised after my first post,
I now get a build error: thanks for the help Peter |
|
30 Mar 2011, 13:16
Anthony Shaw (115 posts) |
I copied the code you posted into my Sudoku project and it built with no problem. Maybe a ‘Project Clean…’ would do the trick, it’s worth a try. The other thing is are you sure the build error is coming from the about.xml? |
|
30 Mar 2011, 13:34
Peter Koukoulis (4 posts) |
Hi Anthony, I tried Prokect -> Clean, but the problem persists. When I remove the attribute settings for TextView, as follows:
then the build completes sucessfully, but as soon as I add all the android attributes, I get the build error: Error parsing XML: unbound prefix Probably a trivial problem, but I’m new to Android. Been a PL/SQL programmer all my life and working with Eclipse is a compete new world to the trusted command line SQL+. Thanks again for your help! P; |
|
30 Mar 2011, 14:36
Peter Koukoulis (4 posts) |
I’ve fixed the build error problem. Once I had deleted the error in the Problem view, the build completed sucessfully. The problem error I get when clicking on the About button: I have looked in the LogCat and found the following error listed: however still appears :-( P; |
|
30 Mar 2011, 15:08
Anthony Shaw (115 posts) |
I will put the trick of just deleting the errors in my little book of Things To Remember. Since we are back to square one, how about checking about.java to see if it is picking up the right content view. It should be
Note the setContentView should be looking for R.layout.about BTW: In ‘real life’ I’m a C, C#, Java, Oracle, PL/SQL (and a few other things) programmer. The PL/SQL thing is quite new to me and I use it mainly in APEX and Oracle functions/procedures and it’s a totally different world so I know where your coming from :-) |
|
30 Mar 2011, 21:03
Ed Burnette (1316 posts) |
Scroll back a few lines in the LogCat and look at the Exception line. It probably says:
If it doesn’t say .About then the problem is not in your about.xml file. Check to make sure you only have one copy of about.xml. If that doesn’t help, check for a “smart quote”, i.e, a quote that looks like a quote but isn’t really (thank you Unicode). If it’s still not obvious then put the whole project in a zip file and mail it to my gmail.com address (ed.burnette) and I will be happy to load it up in Eclipse and take a look. |
| You must be logged in to comment |

