title: Android dialog theme makes setContentView crash the application
body: <p>I'm applying this theme from manifest : </p>
  
  <pre><code>    &lt;activity
          android:name=".ui.rate.MyActivity"
          android:theme="@android:style/Theme.Dialog"&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>With this the application crash on setContentView() of MyActivity. If I remove it there is no crash but I need this theme</p>
  
  <p>In the activity onCreate() i'm doing this : </p>
  
  <pre><code>    requestWindowFeature(Window.FEATURE_NO_TITLE);
      setContentView(R.layout.activity_rate);
      getWindow().setBackgroundDrawableResource(android.R.color.transparent);
  </code></pre>
  
  <p>Even if I remove the first and third lines the applicatio ncrash the same way. It's really the dialog theme that's causing the crash </p>
  
  <p>How can I set it so that Android accept it ?</p>