Here is my email_dialog.xml layout:
email_dialog.xml
You should do this:
final EditText txtEA = (EditText) dialog.findViewById(R.id.txtEmailAddress5);
You forgot to search for the txtEA in dialog.
txtEA
You must call findViewById on dialog.
findViewById
dialog