cannot resolve method getSupportActionBar().setDisplayHomeAsUpEnabled(true);
<p>I am using Android Studios, however, I am unable to add the below two methods as it says that it cannot resolve them.</p>

<pre><code> getSupportActionBar().setDisplayHomeAsUpEnabled(true);

  getSupportActionBar().setTitle("Detail")
</code></pre>

<p>;</p>