I had a somehow similar problem, in my case the dialog would appear and disappear in milliseconds: To solve it, don't call finish() or finishActivity() in the same method that calls your dialog.
createNewDialog(SOME_CONSTANT).show();
finish();
this destroys your dialog even before you access it.