Mailing the story:
Android Dialog Errors & Solutions: Bad Token Exception
If you are creating a custom Dialog for Android, and following the Android Developers’ Creating Dialogs tutorial, then most likely you would have faced a Force Close with an exception showing up in logcat. I did too. Although I figured it out quickly, it might not be easy to find out for many, so posting the solution for reference