Android can't get EditText getText().toString() in a Dialog
I'm trying to create a custom Dialog in an individual class. The dialog is started in the main activity: DialogLogin login = new DialogLogin(); login.show(getFragmentManager(), DISPLAY_SERVICE); On starting the application the main activity starts in the background and then the dialog starts. In the dialog there is an EditText-field to receive user-input. On pressing the save-button the EditText-field should be read-out and the input displayed, but it's always empty. Moreover there are no errors in the LogCat... I tried many solutions of the same problem, but nothing worked. I hope anyone has