I have a main class:
public class MainFragment extends Fragment implements OnClickListener, OnMarkerClickListener {}
I have a dialog class:
public class PedirTaxiDialog extends SimpleDialogFragment implements
OnClickListener{}
For example: I have FragmentA from which I start SimpleDialogFragment (there are EditText in box). How to can I get back the value from the EditText to FragmenaA? I try to make many things ... but I have no sucessy. Help me please !!
In my MainFragment class, I show the dialog class:
FragmentActivity activity;
activity = (FragmentActivity) getActivity().new PedirTaxiDialog().show(activity.getSupportFragmentManager(), "Salvar Favoritos");
I would get the values entered by the user in the dialog class. How can I in my MainFragment get the return of PedirTaxiDialog?
links of classes: