Android system dialog causes app to crash
<p>My app has this line of code</p>

<pre><code>requestWindowFeature(Window.FEATURE_NO_TITLE);
</code></pre>

<p>before it calls this line</p>

<pre><code>setContentView(R.layout.home_layout);
</code></pre>

<p>My problem is that when the app crashes (for whatever reason), Android shows a Crash Data dialog the next time it starts, causing it to crash with the error "requestFeature() must be called before adding content". Is there a workaround for this?</p>

<p>EDIT: The issue is that the system is adding content to the screen before I call requestfeature() causing my application to crash.</p>
