i've read the guide at Passing data between a fragment and its container activity regarding this, but i still can't understand how to do it(still learning Android).
I have an activity that has a button on it, that i want to take it data from an inflated fragment when i click it. The problem is that i am using multiple different fragments, and i don't know how i can generalise referencing them, or call any of them for that matter. Doing some googling, I think i need to be using findFragmentbyId to reference it, but it doesn't seem to like that. I'm not sure on how to proceed