Can't tell you how many times I've been bitten by it. If you are lucky the logcat will give you the reason, but more often than not, code would simple fail without the right permissions in the manifest file.
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
+1 to Nidhi's comment. And the worst part about many examples and tutorials (including the SDK itself) is that they neglect to tell you which permissions are required to get the code to work.
The next thing is to understand layouts, activities, intents and adapters. And understand the activity lifecycle.