getText from a EditText in a DialogFragment
问题 I have a DialogFragment like this one The Dialog is called by clicking on the "plus" button in the MainActivity below which is initially empty. When I click on "continue", I create a button and so far it works. I also wish that the string I insert in the EditText in DialogFragment is shown on the button I've just created. My problem is that I can not retrieve the string I entered in the EditText. Here is the code: MainActivity public class MainActivity extends FragmentActivity implements