I have one fragment and one activity, Fragment, and Activity.
In Fragment, I have a Button. When the button is clicked Activity is started.
In Activity, I have an EditText.
I want to display the data retrieved from EditText in Fragment in the TextView when the back is pressed from Activity.
can someone help me with the code to make this work?