I have a ListView with several rows.  Each row has a button.
I want the button to start a FragmentTransaction to replace the Fragment that the ListView is in.
However, in the getView() method of the Adapter, this line does not work:  
FragmentTransaction t = getContext().getSupportFragmentManager().beginTransaction();
It does not like the context.
Can this be done in this way or does the Transaction have to happen elsewhere?
 
     
     
    