The Android Hello World tutorial (part 2)
If you are continuing to follow the android tutorial, you will now be creating a new hello world program that defines its string inside the strings.xml file rather than inside the helloAndroid class. In the tutorial you write XML directly. I found that it was easy to make errors. Luckily the Android Debug Tools (ADT) Eclipse plug-in means that you often don’t have to write XML. For example if you double click on the strings.xml file in the res/layout directory, Eclipse will open a window on the xml file. If you click on the resources tab at the bottom of the window you can add, edit, delete and reorder strings without having to worry about matching your start and end tags etc. If you do the same to the main.xml file in the res/layout directory Eclipse will show you the resulting string drawn on the device screen. The tutorial ends by deliberately creating a null pointer exception and showing how to create a breakpoint. If you run the program in debug mode with a breakpoint set on line ...