I want to call a Fragement from my BaseAdapter Class. In this class I have button on click of which I want to call the new fragment, but I am not able to get this. I have to
Parse FragmentManager xxx object to Adpter Constructor,
**xxx**.beginTransaction().replace(your_container, new YourNewFragment()).addToBackStack(null).commit();