title: To remove the back arrow button from Action Bar
body: <p>In my Android Project, whenever I go from First Activity to Second, I get an left arrow button followed by the some text in the action bar. That left arrow only comes when I set my First Activity as the hierarchical parent of the Second Activity.</p>
  
  <p>I want to remove that back button and replace it with an icon. I have read other posts for the same question, and so I have already tried the following code in my onCreate() method. </p>
  
  <pre><code>getActionBar().setDisplayHomeAsUpEnabled(false);
  </code></pre>
  
  <p>But after reaching to the second activity, the app gets crashed. </p>
  
  <p>Please help me out. </p>