Android debugging

A quick debugging tip for Android development. If you got an application that crashes on startup and just leaves you with the force close dialog running the following command might help:
adb logcat
adb is located in the tools directory of the Android SDK. Running it with the logcat parameter will output all that the emulator (or attached device) is logging. So in the case of an application crashing on startup you'll find the exception and stacktrace in the log when your run the application. In my case i tried to use findViewById before onCreate had been called.