How to display, on MainActivity, the number inserted on a custom alertDialogFragment with EditText?
问题 I'm using a custom alertdialog with an editText to insert a number, the alertdialog is working, but nothing happens when I click positive button, it should display the value inserted, in main_activity.xml . It seems that my interface is not working. I don't know what I'm doing wrong, here is my code: TestAlertDialogFragment.java public class TestAlertDialogFragment extends DialogFragment { // Use this instance of the interface to deliver action events TestAlertDialogListener mListener; public