I have two fragment class:
Mainfragment and subfragment.
I have public List<object> l1
in Mainfragment and i have add items in this list.
Now i want to access this list l1 in subfragment.
i have used - subfragment sf = (subfragment) getActivity().getFragmentManager();
but it shows error.
How can i access this List l1 in subfragment?