Each day of the week is a DialogFragment (in this case, fmonday ), when you click on a button, another DialogFragment appears with a spinner ( AlertDFragment ).

When selecting an item in the AlertDFragment dialog, you need to transfer 3 String variables to fmonday .

How to transfer data from one dialog to another? It is impossible to transfer the usual intent, since none of them is an Activity.

enter image description here

    1 answer 1

    AlertDialog has a Listener for an action, with it you can transfer data to Actvitiy . In Activity you have a link to fmonday. Make any method at fmonday , which will receive data. Pass the data received from AlertDialog to fmonday via this method.

    • I did not understand a little about the method, can I have a little more details? - ABL