title: Why is Android Studio telling me to use getSupportActionBar() instead of getActionBar()?
body: <p>Just adding a very simple help activity (simply displays a block of HTML text from a resource file), to a very simple test app, in this new-fangled Android Studio 0.8.6 beta and I'm getting the following warning, with no reason / justification offered:</p>
  
  <p><img src="https://i.stack.imgur.com/08oA3.png" alt="Should use getSupportActionBar instead of ActionBar name"></p>
  
  <p>Does anyone know why?</p>
  
  <p>Also is there any documentation, as Android Studio offers none and can't find anything specific on the android site. </p>
  
  <p>If there is a justification for the warning, can someone please point me at a complete example,as the class as it is is almost completely generic / per most of the examples around e.g.</p>
  
  <pre><code>public class HelpActivity extends Activity {
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_help);
  
      ActionBar actionBar = getActionBar();
      actionBar.setTitle(getString(R.string.action_help));
  
      TextView helpText = (TextView) findViewById(R.id.help_text);
      helpText.setText(Html.fromHtml(getString(R.string.help_markup)));
    }
  }
  </code></pre>