title: Android : android.app.FragmentManager cannot be converted to android.support.v4.app.FragmentManager
body: <p>I'm trying to create an adapter for my fragments but I get this :</p>
  
  <p>Error:(19, 72) error: incompatible types: android.app.FragmentManager cannot be converted to android.support.v4.app.FragmentManager</p>
  
  <p>This is a part of my main activity:</p>
  
  <pre><code>import android.app.Activity;
  import android.support.v4.view.ViewPager;
  import android.os.Bundle;
  
  public class MainActivity extends Activity {
  
  CustomPagerAdapter mCustomPagerAdapter;
  ViewPager mViewPager;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      // == Setting up the ViewPager ==
  
      mCustomPagerAdapter = new CustomPagerAdapter(getFragmentManager(),this);    &lt;--- Error is on this line
  </code></pre>
  
  <p>And this is a part of my customAdapter class : </p>
  
  <pre><code>import android.content.Context;
  import android.os.Bundle;
  import android.support.v4.app.Fragment;
  import android.support.v4.app.FragmentManager;
  import android.support.v4.app.FragmentPagerAdapter;
  
  public class CustomPagerAdapter extends FragmentPagerAdapter {
  
  protected Context mContext;
  
  public CustomPagerAdapter(FragmentManager fm, Context context) {
      super(fm);
      mContext = context;
  }
  </code></pre>
  
  <p>I appreciate any help!</p>