I have a class in java that takes all the information and builds the entire structure of my program. Well, how do I get an EditText that is in my fragment and throw its contents into the other activity.
Example:
My fragment calls a layout that has a comment field. This fragment is called in another Activity. At the time of saving the data I need to get the data entered by the user in this EditText of Fragment and save. Well I've tried to do this, but it always gives null pointer excpetion error ... Also I tried to create an intent and I could not. If it were with EventBus what would it be like? I've already tried searching the entire internet and found nothing that solved the problem.