I'm looking for a best way to implement the following:
- I have a main Activity that started when the application launched. One of the items in this Activity is the TextView called "Other Manufacturer".
- When a user selects this TextView the OnClickListener launches another Activity allowing the user to search my database for an available Manufacturer.
- Once the user selects a Manufacturer, the application should return the user back to the main Activity with the appropriate Manufacturer displayed in the TextView.
I got everything working, but I'm stuck on how to pass the selected Manufacturer back to the Main Activity and fill in the TextView. I've searched everywhere, but found mostly examples of how to pass value from one activity to a new activity.
What I need is how pass a value from an activity to a previous open activity and write the value into a TextView.
Should I use Fragment?
If you could share with me an example or point me to some examples, I would greatly appreciate it.
Thank you in advance for your help.