0
I’m developing a small android app to exercise what I’ve already learned. The application consists of two Activity’s, Mainactivity and a second Activity. On Main I have a textView and a button, while in the second Activity I have an editText and two buttons, for confirmation and cancellation. The operation of the application should occur as follows: when pressing the button in the Main Activity an Intent takes us to the second Activity, and we must enter some text in editText and press the confirm button, going again to Mainactivity, where the textView will have the previously typed value.
The problem is that I don’t know how to pass the typed data to Main. I believe it is something simple but I don’t have many ideas on how to look. I’d like at least one north to guide me.
Thanks in advance.
I found the resolution here: https://stackoverflow.com/questions/14292398/how-to-pass-data-from-2nd-activity-to-1st-activity-when-pressed-back-android using startActivityForResult
– MatheusEdnei