title: Android Fragment Transaction .replace wrong 2nd arguement
body: <p>I keep getting a wrong second argument type error on this code @ the ft.replace(..., fragment).  I'm not sure what's wrong and would appreciate any help.</p>
  
  <pre><code>package valdes.listone;
  
  import android.app.FragmentTransaction;
  import android.os.Bundle;
  import android.app.Activity;
  
  public class MainActivity extends Activity implements GroceryListFragment.GroceryListListener{
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  }
  
  @Override
  public void itemClicked(long id){
      //GroceryListListener
      GroceryDetailFragment fragment = new GroceryDetailFragment();
      FragmentTransaction ft = getFragmentManager().beginTransaction();
      fragment.setListId(id);
      ft.replace(R.id.fragmentContainer, fragment); //error is here.
      ft.addToBackStack(null);
      ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
      ft.commit();
  }
  </code></pre>
  
  <p>}</p>