title: How to add menu button on the navigation bar
body: <p>I have a simple app which only needs a menu button with some options, and it should work in all devices.</p>
  
  <p>Anyway, my app works fine in all cases, except for that I couldn't place menu button on the navigation bar.
  Here is my code:</p>
  
  <p>styles.xml in value folder</p>
  
  <pre><code>&lt;style name="AppTheme" parent="AppBaseTheme"&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;        
  &lt;/style&gt;
  </code></pre>
  
  <p>styles.xml in value-v11 &amp; value-v14 folders</p>
  
  <pre><code>&lt;style name="AppTheme" parent="AppBaseTheme"&gt;
      &lt;item name="android:windowNoTitle"&gt;false&lt;/item&gt;
      &lt;item name="android:windowActionBar"&gt;true&lt;/item&gt;
      &lt;item name="android:actionBarStyle"&gt;@android:style/Widget.Holo.ActionBar&lt;/item&gt;        
  &lt;/style&gt;
  </code></pre>
  
  <p>This code appears in all onCreate events of my activities</p>
  
  <pre><code>if(Build.VERSION.SDK_INT &lt;= 10 || (Build.VERSION.SDK_INT &gt;= 14 &amp;&amp;    
  ViewConfiguration.get(this).hasPermanentMenuKey()))
  {
  // menu key is present
  ActionBar actionBar = getActionBar();
  if(actionBar!=null)
  actionBar.hide();
  }
  else
  {
  //No menu key
      ActionBar actionBar = getActionBar();
      if(actionBar!=null)
  actionBar.show();
  }
  </code></pre>
  
  <p>This code works fine, but in case I there isn't any action bar, I want to put the menu button in the navigation bar.</p>
  
  <p>I've done so much googling for that, but I couldn't find any working solution for this.</p>
  
  <p>Thanks in Advance.</p>