How to pass data from a fragment to an Activity to send them in an email on Android?

0

You see, I have a MainActivity that a function that sends an email with the data of a fragment. In this my Fragment are inputs in which data is loaded. Now, in that same fragment there is a button "New data" that opens the same fragment but with clean fields. What I need to do is that in the function that is in the MainActivity the values loaded in the first fragment and in the fragment generated from the "New data" button are sent. Any ideas?

    
asked by Victor Herasme Perez 17.02.2018 в 20:41
source

0 answers