posted 10 years ago
Whenever you get that message, check the logcat which contains the full stack trace of the exception. ("adb logcat" from the console of your desktop computer while the device is connected via USB.)
I bet it's an NPE, because in line 30 you're setting "uri2" to null (or rather, you're setting it to "uri", which you're setting to null in line 29), and in line 31 you're invoking a method on it.
Could also be an NPE in line 25 if "dadclink" is null. But there's no point in guessing, as the stack trace in the logcat will tell you.