title: How to start Fragment from Activity?
body: <p>I have one Fragment: </p>
  
  <pre><code>ProductsFragments extends Fragment
  </code></pre>
  
  <p>and one Activity </p>
  
  <pre><code>AdminMenuActivity extends ActionBarActivity
  </code></pre>
  
  <p>I want to call ProductsFragments from AdminMenuActivity. I have used 2 options:</p>
  
  <p>1) </p>
  
  <pre><code>FragmentManager fm = getSupportFragmentManager();
                  for(int i = 0; i &lt; fm.getBackStackEntryCount(); ++i) {
                      fm.popBackStack();
                  }
                  FragmentTransaction tx = getSupportFragmentManager().beginTransaction();
                  tx.replace(R.id.frame_layout, android.support.v4.app.Fragment.instantiate(AdminMenuActivity.this, fragments[1]));
                  tx.commit();
  </code></pre>
  
  <p>2)</p>
  
  <pre><code>Intent intent1 = new Intent(AdminMenuActivity.this, ProductsActivity.class);
                  startActivity(intent1);
  </code></pre>
  
  <p>Both are failed. I don't want to extend ProductsFragments with FragmentActivity because it doesn't give me supportedActionBar v7</p>
  
  <p>So how do I call <code>Fragment</code>?</p>