title: Disappearing action Bar in a Dialog Activity
body: <p>I am using an activity to work as a dialog box. However, the actionBar on the dialog activity is not disappearing. I have tried using:</p>
  
  <pre><code>protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
  
      setContentView(R.layout.activity_dialog);
  
  }
  </code></pre>
  
  <p>It Doesn't work. I also set the theme of the app (from the manifest) to be as following:</p>
  
  <pre><code>&lt;activity
          android:name=".DialogActivity"
          android:label="@string/title_activity_dialog"
          android:theme="@style/Theme.AppCompat.Light.Dialog.Alert" &gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Following is the Screen shot is of what I am getting and I am aiming to remove this pointless white bar which is hiding the text.
  <a href="http://i.stack.imgur.com/9pwwb.jpg" rel="nofollow">The Screen Shot of the Emulator</a></p>
  
  <p>Thank you.</p>