95% of the Android questions on StackOverflow can be solved by:
1. running Logcat (adb logcat)
2. Looking for NullPointerException (which points to the line in your code with issue).
It is amazing to me how many people actually put their logcat output into the question, when the NullPointer is so obvious. It seems so basic to me.