Trying to call a method in my activity from a fragment. I want the fragment to give the method data and to get the data when the method return. I want to achieve similar to
((your_activity) getActivity).method_name()
Where your_activity is the name of your activity and method_name() is the name of the method you want to call.
your_activity
method_name()