title: Can't resolve getSupportActionBar() method in fragment
body: <p>I have an activity that extends ActionBarActivity and hosts a single fragment shown here:</p>
  
  <pre><code>import android.support.v7.app.ActionBarActivity;
  
  public class CrimePagerActivity extends ActionBarActivity{
  </code></pre>
  
  <p>When I try to make a call to </p>
  
  <pre><code>getSupportActionBar()
  </code></pre>
  
  <p>I get an error saying it cannot be resolved. I tried passing in </p>
  
  <pre><code>getActionBar() 
  </code></pre>
  
  <p>which produced a NullPointerException error at runtime.<br>
  Here is the code in question. </p>
  
  <pre><code>public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
                           @Nullable Bundle savedInstanceState) {
      View v = inflater.inflate(R.layout.fragment_crime, container, false);
  
      if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.HONEYCOMB){
          if(NavUtils.getParentActivityName(getActivity()) != null) {
              getActivity().getSupportActionBar().setDisplayHomeAsUpEnabled(true);
          }
      }
  </code></pre>