i its probably a basic question, but i cant figure it out with google.
When i create a new Fragment in Android Studio, it provides an interface named "onFragmentInteractionListener" which has to be implemented by the Activity that contains this Fragment. The Fragment also provides an "onButtonPressed" method that calls the onFragmentInteraction(Uri uri) method in the Interface.
But i have no idea how to use it. How to get a Button Click Event from the Fragment to the Activity? I let the ButtonView call the onButtonPressed method. But how does it continue from there? And what does URI mean here? I googled it, but i dont understand it in the context of this problem.