The below program throws a NullPointerException. In Log cat it shows:
01-09 20:40:34.366: D/RemoteIt(2809): java.lang.NullPointerException
First, trouble-shooting Exceptions is called Debugging. Second, there are several way to debug.
For starts, you should find out what line is causing the exception. You can do this by looking at the topmost line of the stack trace. If this is not a reference to code you wrote, check the next line, then the next, etc - until you find something you wrote. If you do not find such a line, skip to step 3.
Once the line is found, add several print statements before the line to print the current variables. For example:
Log.d("DEBUG", "myVariable = " + myVariable == null ? "null" : myVariable);
Then run it and check the output.
The final step is to use the Eclipse Debugger. If you know the line where the code breaks, add a breakpoint by left clicking on the line number. If not, just add the breakpoint on the first line of onCreate. The link above tells how to use this feature in detail.
Also remember that Android is shipped with many debug tools. You can read about them here.